
On Thu, Feb 16, 2012 at 10:12 AM, Jürgen Hunold <jhunold@gmx.eu> wrote:
Hi Robert,
On Wednesday, 15. February 2012 14:47:39 Robert Dailey wrote:
On Wed, Feb 15, 2012 at 3:43 AM, Jürgen Hunold <jhunold@gmx.eu> wrote:
Hi Robert,
Flags used by Boost.Build for building Boost:
/Z7 /Od /Ob0 /W4 /GR /MDd /Zc:forScope /Zc:wchar_t /Wp64 /GB /Op /wd4675 /EHs -c
-DBOOST_ALL_NO_LIB=1
"-I."
for compiling the Boost libraries.
The questions remains: Which flags uses STLport?
Here is the debug command that STLport make scripts use on VS 2008 for the debug library:
cl /nologo /W4 /EHsc /Zm800 /MTd /Zi /DWINVER=0x0501 /GS /DWIN32 /D_WINDOWS /D_DEBUG /D_STLP_DEBUG /I../../stlport /c /Foobj\vc9\static-stlg\allocators.o /Fdobj\vc9\static-stlg\stlportstld_static.pdb ../../src\allocators.cpp
Based on this information, can you identify the problem? I see that /Zc:wchar_t is missing, but according to MSDN documentation, this is the default anyway.
Yes, explicit wchar_t was introduced for older msvc compiler. Obsolete nowadays.
My best guess is the /D_STLP_DEBUG define which enables enhanced debugging magic (iterator validation etc.) which might not be binary compatible with Boost. Try to add "define=_STLP_DEBUG" on your commandline an see if this helps.
And maybe look up /GR vs. /GS and most probably /MDd vs. /MTd
Defining _STLP_DEBUG did it! it links perfectly now!! yay!!!! Thanks a ton!!