Hi Alan, Phil,

adding the option /D_ITERATOR_DEBUG_LEVEL=0 to the 
replacement string in plplot.cmake did get rid of the
error messages about that mismatch, but now I am facing
error messages about multiply defined symbols:

test_plend.c
Linking CXX executable test_plend.exe
msvcprt.lib(MSVCP100.dll) : error LNK2005: "void __cdecl 
std::_Xlength_error(char const *)" 
(?_Xlength_error@std@@YAXPBD@Z) already defined in 
libcpmt.lib(xthrow.obj)

msvcprt.lib(MSVCP100.dll) : error LNK2005: "void __cdecl 
std::_Xout_of_range(char const *)" 
(?_Xout_of_range@std@@YAXPBD@Z) already defined in 
libcpmt.lib(xthrow.obj)

msvcprt.lib(MSVCP100.dll) : error LNK2005: "protected: 
char * __thiscall std::basic_streambuf<char,struct 
std::char_traits<char> >::pptr(void)const " 
(?pptr@?$basic_streambuf@DU?$char_traits@D@std@@@std@@IBEPADXZ) 
already defined in libcpmt.lib(cout.obj)

msvcprt.lib(MSVCP100.dll) : error LNK2005: "public: 
virtual __thiscall std::basic_streambuf<char,struct 
std::char_traits<char> >::~basic_streambuf<char,struct 
std::char_traits<char> >(void)" 
(??1?$basic_streambuf@DU?$char_traits@D@std@@@std@@UAE@XZ) 
already defined in libcpmt.lib(cout.obj)
...

Not quite sure how to proceed here. One option might be
to force the linker to ignore these double definitions
(/force option, IIRC), but it usually is a sign that
potentially incompatible compile options have been used
for different parts of the program.

Does anyone have advice on this? (Linkage problems with
C++ programs are a terra incognita for me ;))

Regards,

Arjen


On Thu, 14 Mar 2013 11:22:29 +0100
  "Arjen Markus" <[email protected]> wrote:
> Hi Alan, Phil,
> 
> I just tested with the latest patch and the one line in 
> that
> commented out and got the very same results.
> 
> However, the MicroSoft site gives information about this
> particular error message 
> (http://msdn.microsoft.com/en-us/library/vstudio/hh697468.aspx 
> for the details). It appears
> that _ITERATOR_DEBUG_LEVEL is a macro meant to help with
> safety issues regarding iterators (in the C++ standard 
> library, IIUIC).
> 
> Looking at that webpage and at the error message, I 
> conclude
> that building the plplotd.lib library results in some
> debugging leftovers. It may very well be that this is a
> conflict between defaults, since plplotd.lib is a C 
> library
> (in which this macro plays no role) and the program 
> test_plend where the build fails uses a C++ library 
>(where
> the macro is of importance).
> 
> If this is so, then we should explicitly set this macro
> for the C stuff as well, I suppose. I will give that a
> try.
> 
> 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.
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Plplot-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/plplot-devel
> 


 

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.





------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to