I have an executable in Ada compiled with gprbuild.the executable use some simple function (like sin e cos).This executable is operating in a App binded to a POS (Partition Operating System) designed with vxwork. Once recompiled the whole process it appears a bunch of multiple function declaration errors between the POS_API.o and the ada executable (hello.o) . These functions (sin, cos, ...) are all in the same library. Unfortunately the most easy solution to de-reference all this function in POS is not permitted (bound of design).Any suggestions on how to compile or proceed? Is this any possibility to compile without a specific library or some function in order to avoid the multiple reference error?
How to exclude with GPRbuild some functions?
186 Views Asked by Giovanni At
1
There are 1 best solutions below
Related Questions in ADA
- How do you get files with extension from folder in Ada95?
- Ada Encapsulated Library Project GNAT
- Technical explanation for discrepancy in uninitialized variable in Ada?
- Ada Function Parameter as Access Type or Not
- GTK: Using an Offscreen Window to investigate the rendered dimensions of widgets
- Ada83 Constraint Error not Present in Watch Window
- Can't find GNAT GPS Dependencies Form
- Ada dynamic array allocation index range
- Ada toolchain for Windows CE
- How can I migrate an application written in DEC Ada to Windows?
- How to check if task is terminated in Ada
- Ada : String legal value?
- How to print first n lines of a variable with GDB?
- Is the Ada programming language still relevant in the military?
- Out parameter undefined
Related Questions in VXWORKS
- Task Activation VxWorks vs. Posix
- Does free() free the memory immediately
- Changing IP address at runtime
- define string at compiler options
- vxworks message queue "lost" a task blocked on it. What can be a reason?
- Can statfs() read a remote FTP drive?
- tftpGet error from tftpLib in VxWorks
- i get a tftp timeout from vxworks
- manully establish connection to ftp server using sockets
- How can I send [SYN] with bare sockets?
- read from ftp socket in vxworks
- why is this not writing (receiving) the correct number of Bytes?
- How to know the limitations of specific VxWorks version?
- VxWorks CF creatred with dosFsVolFormat cannot be read on Windows
- Error using Boost C++ Libraries with VxWorks
Related Questions in GPRBUILD
- Can gprbuild be configured to output gnatprep preprocessed sources?
- 'With-in' duplicate GPRBuild name files
- In Adacore's GPR file, how can I set the compiler to exclude file with full path
- Building a DLL for Windows with a specific base address
- Ada Gnat project which includes differently-named files for different build configurations
- GPRbuild: relocation truncated to fit R_X86_64
- How to install gprbuild on Linux - Centos7
- How to use nvcc with gprbuild?
- Link math.h with gprbuild
- Is it possible to have a file wildcard in gprbuild project files?
- GPRbuild: `runtime` attribute ignored in aggregated project
- GPRbuild: compiler switch being passed to linker
- Why does gprbuild behave differently when building a library on Linux and Windows?
- Link object file to project with gprbuild
- Profiling GPRBuild
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I'm afraid this isn't really an answer: largely because it's more than ten years since I worked with VxWorks and Ada, and things have got a bit hazy. Also, it's a bit long for a comment on your question
As I used it, VxWorks comes with a whole suite of software that you configure to hold just the components you need into your kernel: in this case, that would presumably include the maths package, functions like
sin(), as well as the OS functions liketaskSpawn().The Ada/VxWorks build process that we used generates a partially-linked object file, with references to
sin(),taskSpawn()unresolved (I can't remember how this is achieved; if using GNUld, maybe the-ror--relocatableswitch?). When VxWorks loads this object file over the configured kernel, the unresolved references get resolved, and away we go.Now, I don't know what sort of thing your POS_API does. Is it a skin over a configured VxWorks kernel? Does it load yoour Ada program itself? If it is itself a VxWorks program, how come it's exporting
sin()?I suspect that the problem is to do with the way you've linked your executable. Maybe you could show us your GPR file? Otherwise, I'm just whistling in the dark.