Hello Vadim, On 2009-04-23 18:42, Vadim Zeitlin wrote: > Hello, > > I noticed that plplot build supported optionally appending a suffix to all > the libraries being built via the setting of LIB_TAG option. This seemed to > be exactly what I needed to make it possible to use both debug and release > builds of it at the same time (and looking at the archives, this seems to > be exactly what it was added for). However it simply doesn't work for me: > if I use (many more options omitted but they don't matter) > > cmake -G "NMake Makefiles" -DLIB_TAG=_debug_ .. > > I get plenty of warnings about inconsistent DLL linkage as well as this > error: > > plplot\include\plcore.h(93) : error C2491: 'plsc' : definition of dllimport > data not allowed > > > I have really hard time understanding anything in cmake-generated > makefiles (this system was clearly never meant to be understandable by > human beings...) but it seems that the source of the problem is that in > various flags.make files -Dplplotcxx_debug_d_EXPORTS is used instead of > -Dplplotcxxd_EXPORTS. Unfortunately I don't know what would be the right > way to fix this (and I could be wrong about the problem being due to this > anyhow). > > Thanks in advance for any help, it would be really great to have this > working! > VZ > > P.S. It would be also nice if LIB_TAG setting actually overrode the "d" > suffix added when using "double" or if the user-specified value were > at least appended and not prepended to it as the current schema > results in rather unreadable names like "plplotdd.dll" if you just > naively use LIB_TAG="d" for the debug build as I originally did. >
The LIB_TAG feature is used right now to indicate whether PLplot expect single or double precision floating-point numbers. The confusion with debug versions is understandable. Why there should be an error about plsc when you have a completely different tag than "" or "d" is something we will need to look into. (Windows makes this sort of stuff rather complex ...) Regards, Arjen Delft Hydraulics, GeoDelft, the Subsurface and Groundwater unit of TNO and parts of Rijkswaterstaat have joined forces in a new independent institute for delta technology, Deltares. Deltares combines knowledge and experience in the field of water, soil and the subsurface. We provide innovative solutions to make living in deltas, coastal areas and river basins safe, clean and sustainable. 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. ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel