dc++.261, vc6 problem

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

japko
Posts: 5
Joined: 2003-07-19 16:28

dc++.261, vc6 problem

Post by japko » 2003-07-19 16:43

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

cologic
Programmer
Posts: 337
Joined: 2003-01-06 18:32

Post by cologic » 2003-07-19 17:07

Update your Platform SDK; it's a free download from Microsoft.

japko
Posts: 5
Joined: 2003-07-19 16:28

Post by japko » 2003-07-19 17:39

i'm still using the newest platform sdk;

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

Post by TheParanoidOne » 2003-07-19 20:07

If you read compile.txt, you will see that STL and WTL need to go *before* everything else.
The world is coming to an end. Please log off.

DC++ Guide | Words

japko
Posts: 5
Joined: 2003-07-19 16:28

Post by japko » 2003-07-19 21:11

i've read compile.txt; it says stl and sdk need be before everything else;
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

Post by TheParanoidOne » 2003-07-19 21:23

Did you make sure you did a clean build (via Rebuild) between configuration changes?
The world is coming to an end. Please log off.

DC++ Guide | Words

japko
Posts: 5
Joined: 2003-07-19 16:28

Post by japko » 2003-07-19 21:26

yes, i am sure that :)

Blejdfist
Posts: 1
Joined: 2003-08-06 21:58

Post by Blejdfist » 2003-08-06 22:00

I had the same problem.. but the solution is quite simple

Instead of
c:\PROGRAM FILES\MICROSOFT SDK
in the include list.. use
c:\PROGRAM FILES\MICROSOFT SDK\Include :wink:

Also.. add
c:\PROGRAM FILES\MICROSOFT SDK\Lib
in the Library list

Then it should work fine

japko
Posts: 5
Joined: 2003-07-19 16:28

Post by japko » 2003-08-10 21:01

Blejdfist - that was the problem;
thx all of You :)
i've just made my first dc++ build;

--
japko

Who is online

Users browsing this forum: Google [Bot] and 0 guests