Re: multilanguage compilation
"Alejandro R. Mosteo" <[email protected]> Thu, 17 Mar 2005 13:25:42 +0100
| Newsgroups | gmane.comp.ide.gps.user |
|---|---|
| Message-ID | <[email protected]> |
André Laurens wrote: > Hello, > > Coming back to an old piece of software, I found the following problem > when trying to build it under GPS : > > - this software is mainly made of Ada files, with a single C module > (i.e. 1 .c + 1 .h files) > - as far as I can remember, I had nothing to do - except to select Ada > and C languages in the project wizard - to get the C functions compiled, > put in a .a library, and linked with the Ada application. > - now I can't get the C file compiled, neither linked with Ada modules - > gnatlink says "undefined reference to `C_name_of_interfaced_function'" > > I lost the former .gpr file, so I can't compare, and I couldn't find the > solution in GPS documentation. What did I do wrong? This happened to me recently and it was because I hadn't enable multilanguage build in the GPS preferences [Edit/Preferences/General]. Isn't a per project setting, so I was equally puzzled as you.