On 2008-01-06 19:50-0700 Jerry wrote: > [...]With my present set-up, in the directory containing the main program > of a PLplot project, after running gnatmake, I see such (new) files as > > plplot_thin.o > plplot_thin.ali > plplot_auxiliary.o > plplot_auxiliary.ali > plplot.o > plplot.ali > > The .o are newly-made object files and the .ali are Ada things made > by the Ada binder and which can be deleted if desired, after a > compilation. The point is, it looks to me as if gnatmake is not > seeing libplplotadad but sees the sources and politely recompiles > plplot_thin.ad?, plplot_auxiliary.ad?, and plplot.ad?. > > I'm curious to know if you see any such files on your system, including > > plplot_traditional.o > plplot_traditional.ali
I suspect those recompilations are because you are using incorrect or incomplete options for gnatmake. What happens if you specify the cmake options "-DENABLE_ada=ON -DBUILD_TEST=ON" so that the subsequent "make" command builds the Plplot Ada examples? As far as I can remember I set up that cmake build of the Ada examples so libplplotadad is specifically used and no recompilations of the binding are required. If you confirm that cmake sets up gnatmake correctly for the examples (i.e., specifies the correct options for gnatmake on your platform so no recompilations of the bindings occur), then you should use those identical options for any other Ada application you have that uses libplplotadad. N.B. Use the VERBOSE=1 option for make (or else use the cmake option, -DCMAKE_VERBOSE_MAKEFILE=ON) so you will see the flags used for gnatmake (and the lack of extra compilations) when gnatmake builds the examples. 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); PLplot scientific plotting software package (plplot.org); 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 __________________________ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel