Hello everyone, I have been trying to help Walter get started with PLplot on Windows and though he has succeeded in this, in the process we came across a peculiar problem with the PL_DEPRECATED flag and C++.
If I turn it on on Windows XP and use gcc to compile it all, then this is the result: Linking CXX executable x08.exe CMakeFiles\x08.dir/objects.a(x08.cc.obj):x08.cc:(.text+0x30b): undefined reference to `_imp___ZN8plstream11Alloc2dGridEPPPdii' CMakeFiles\x08.dir/objects.a(x08.cc.obj):x08.cc:(.text+0xb44): undefined reference to `_imp___ZN8plstream10Free2dGridEPPdii' collect2: ld returned 1 exit status make[2]: *** [examples/c++/x08.exe] Error 1 make[1]: *** [examples/c++/CMakeFiles/x08.dir/all] Error 2 make: *** [all] Error 2 Apparently the definition of the preprocessor symbols that occurs with PL_DEPRECATED defined confuses the actual use in example x08.cc (and possibly others), but I do not see what I can do about it. I thought an examination of the preprocessed source would make it clear, but alas, it does not. Other functions that I know caused trouble: plhls and plrgb. Can someone with a better understanding of C++ have a look at this? Regards, Arjen DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel