Re: [Plplot-devel] Build problems with octave

2014-01-03 Thread Alan W. Irwin
On 2014-01-03 15:07-0700 Orion Poplawski wrote: > On 12/31/2013 06:50 PM, Alan W. Irwin wrote: >> Hi Orion: >> >> Thanks for doing that suggested experiment. More below >> in context. >> >> On 2013-12-31 16:52-0700 Orion Poplawski wrote: >> >>> On 12/31/2013 11:56 AM, Alan W. Irwin wrote: On

Re: [Plplot-devel] Build problems with octave

2014-01-03 Thread Orion Poplawski
On 12/31/2013 06:50 PM, Alan W. Irwin wrote: > Hi Orion: > > Thanks for doing that suggested experiment. More below > in context. > > On 2013-12-31 16:52-0700 Orion Poplawski wrote: > >> On 12/31/2013 11:56 AM, Alan W. Irwin wrote: >>> On 2013-12-30 13:42-0700 Orion Poplawski wrote: >>> Ah

Re: [Plplot-devel] Cmake support for Ada, addition of -lstdc++ to gnatmake link line

2014-01-03 Thread Tom Kacvinsky
There is one other difference between what PLPlot is doing and what we are doing. We are not making a shared library from Ada code, we are building an executable from Ada code. Even if we were making a shared library from Ada code, it is the fact we are linking in other static libraries built by

Re: [Plplot-devel] Cmake support for Ada, addition of -lstdc++ to gnatmake link line

2014-01-03 Thread Alan W. Irwin
On 2014-01-03 11:43-0500 Tom Kacvinsky wrote: > OK, here is what I have found: when building Ada executables, we link > against two other libraries, one with C code, one with C++ code. CMake > keeps track of this and adds implicit dependencies. Thus, when we link > against the C++ built librar

Re: [Plplot-devel] Cmake support for Ada, addition of -lstdc++ to gnatmake link line

2014-01-03 Thread Alan W. Irwin
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

Re: [Plplot-devel] Cmake support for Ada, addition of -lstdc++ to gnatmake link line

2014-01-03 Thread Tom Kacvinsky
OK, here is what I have found: when building Ada executables, we link against two other libraries, one with C code, one with C++ code. CMake keeps track of this and adds implicit dependencies. Thus, when we link against the C++ built library, -lstdc++ comes along for the ride. I may be able to

Re: [Plplot-devel] Cmake support for Ada, addition of -lstdc++ to gnatmake link line

2014-01-03 Thread Tom Kacvinsky
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. It could be somet