[classad-users] how to build classads library


Date: Thu, 1 Sep 2005 15:31:20 +0200
From: "bmnasser" <bmnasser@xxxxxxxxxxx>
Subject: [classad-users] how to build classads library

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

 

 

Do someone have an idea about the reason?

Can I find somewhere any precompiled library?

 

Thanks in advance

 

Please answer to this email since I cannot access the mailing list: bmnasser@xxxxxxxxxxx

[← Prev in Thread] Current Thread [Next in Thread→]