Hello
I am a beginner, i tried to build the classads
library. I am using MsVC6. I downloaded the STLport , and added the header files
into the include files, however building stops giving this error:
Compiling...
classad.C
C:\DOCUMENTS AND
SETTINGS\BASSEM\BUREAU\STLPORT-4.6.2\STLPORT\stl/_threads.h(181) : error C2733:
second C linkage of overloaded function 'InterlockedIncrement' not allowed
C:\DOCUMENTS AND
SETTINGS\BASSEM\BUREAU\STLPORT-4.6.2\STLPORT\stl/_threads.h(181) : see
declaration of 'InterlockedIncrement' …
And this is related to this code in threads.h:
#if (_MSC_VER >= 1300) || defined
(_STLP_NEW_PLATFORM_SDK)
_STLP_IMPORT_DECLSPEC long _STLP_STDCALL
InterlockedIncrement(long volatile *);
_STLP_IMPORT_DECLSPEC long _STLP_STDCALL
InterlockedDecrement(long volatile *);
_STLP_IMPORT_DECLSPEC long _STLP_STDCALL
InterlockedExchange(long volatile *, long);
#else
// boris : for the latest SDK, you may
actually need the other version of the declaration (above)
// even for earlier VC++ versions. There is no
way to tell SDK versions apart, sorry ...
_STLP_IMPORT_DECLSPEC long _STLP_STDCALL InterlockedIncrement(long*);
_STLP_IMPORT_DECLSPEC long _STLP_STDCALL
InterlockedDecrement(long*);
_STLP_IMPORT_DECLSPEC long _STLP_STDCALL
InterlockedExchange(long*, long);
#endif
Does
someone have an idea about the reason?
Can I find somewhere any precompiled library?
Thanks in advance