On 2014-01-03 10:06-0500 Tom Kacvinsky wrote:

> Alan,
>
> Thanks.  I think I figured out what is going on.  For some reason, CMake
> adds its implicit C and C++ libraries (-lm and -lc, for C, -lstdc++, -lm,
> and -lc for C++) even though the language in use at the time is Ada.  I've
> asked the on the CMake list how to get around this. [....]

Hi Tom:

I believe there is an important distinction which should be included in
the above summary; the extra flags you refer to above all appear to
occur for your project's CMake-based build system but not the PLplot
one (as you can see from the file I attached earlier in this thread).
Therefore, the issue is very likely in how your project's own CMake
logic uses the Ada language support to build Ada executables.

Some time ago I provided a self-contained and simple Ada test case
(consisting of a "Hello World" Ada library and Ada executable that
calls that library to print out that string).  I maintain that simple
test case in parallel with the equivalent PLplot build-system logic.
Like PLplot but in a clearer way, that simple test case (which can be
obtained by using svn to checkout
http://svn.code.sf.net/p/plplot/code/branches/test_cmake/test_ada)
shows how to properly use the Ada language support to build Ada
libraries and Ada code that is linked to those libraries.

If for that test case, you do not get the above extra flags, then
clearly you should follow how that test case builds Ada libraries and
executables in your own project's CMake-based build system to
eliminate the problem.  On the other hand, if for that test case you
do generate the extraneous flags while that does not occur on my
platform, then we probably have a case where your gnatmake is imposing
those extra flags while mine does not, and you should be talking to
the gnatmake developers instead.

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to