hi,
is it possible to build dc++.261 with vc6 (stlport, wtl and latest sdk) ?
Include path contain
c:\PROGRAM FILES\MICROSOFT SDK
c:\DC261\STLPORT
c:\DC261\WTL
and then standart vc dirs.
When building problem occurs:
[code]
--------------------Configuration: client - Win32 Debug--------------------
Compiling...
stdinc.cpp
NOTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications. To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.
c:\dc261\stlport\stl\_threads.h(116) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
c:\dc261\stlport\stl\_threads.h(116) : see declaration of 'InterlockedIncrement'
c:\dc261\stlport\stl\_threads.h(117) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
c:\dc261\stlport\stl\_threads.h(117) : see declaration of 'InterlockedDecrement'
c:\dc261\stlport\stl\_threads.h(118) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed
c:\dc261\stlport\stl\_threads.h(118) : see declaration of 'InterlockedExchange'
Error executing cl.exe.
DCPlusPlus.exe - 3 error(s), 0 warning(s)
[/code]
--
japko
dc++.261, vc6 problem
Moderator: Moderators
-
japko
- Posts: 5
- Joined: 2003-07-19 16:28
i'm still using the newest platform sdk;
os: win98se
errors concern a few lines from \stl\_threads.h :
os: win98se
errors concern a few lines from \stl\_threads.h :
Code: Select all
...
#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 ...
...
Last edited by japko on 2003-07-19 21:22, edited 1 time in total.
-
TheParanoidOne
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 19:37
-
japko
- Posts: 5
- Joined: 2003-07-19 16:28
i've read compile.txt; it says stl and sdk need be before everything else;
but it is no the point;
i tried
and other order as well;
what else can be wrong ?
but it is no the point;
i tried
Code: Select all
Include path contain
c:\PROGRAM FILES\MICROSOFT SDK
c:\DC261\STLPORT
c:\DC261\WTL
and then standart vc dirs.
Code: Select all
Include path contain
c:\DC261\STLPORT
c:\DC261\WTL
c:\PROGRAM FILES\MICROSOFT SDK
and then standart vc dirs.
and other order as well;
what else can be wrong ?
Last edited by japko on 2003-07-19 21:30, edited 1 time in total.
-
TheParanoidOne
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 19:37
-
Blejdfist
- Posts: 1
- Joined: 2003-08-06 21:58
Who is online
Users browsing this forum: Google [Bot] and 0 guests