On 2015-04-18 17:00-0700 Alan W. Irwin wrote: > On 2015-04-18 22:56+0100 Andrew Ross wrote: [....] >> 2) The code in src/CMakeFiles to find the stdc++ library doesn't work for >> me. [....] > > The problem is that libplplot is a mixed C and C++ library for the > nondynamic or static case (because of including C++ drivers code in > the library for those cases). Therefore, for the traditional build > system for the installed examples, when gcc is used to link a C > example a specific link to libstdc++.so has to be provided. > > The code in src/CMakeLists.txt to find that library is really ugly, > works only for g++ and no other C++ compiler, and depends on g++ > internals which apparently have now changed. And colon separation > when there are drive letters is a real pain to deal with. So I plan > to abandon that code completely and simply solve the problem > in a general way for the static and nondyamic cases by using the CXX > compiler (which automatically links in libstdc++.so) for building > the C examples using the traditional build system. Implementation > to follow....
I have now (commit id d8d9999) implemented and tested that change. Please check that it works also for you. One peculiarity that occurred for examples/c/x08c.c is that the C++ compiler apparently treats explicit declarations in the code differently than those same declarations in headers. So the explicit declaration of plexit failed to work while replacing that with #include "plplotP.h" to declare plexit (which I did in the above commit) worked fine. Can any C++ expert here explain this peculiarity of that language? 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 __________________________ ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel