VC6 compiling problems

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

Moderator: Moderators

Locked
Hell-razor
Posts: 12
Joined: 2003-01-05 18:50
Contact:

VC6 compiling problems

Post by Hell-razor » 2003-09-21 10:52

Could anyone please guide me how to set the settings within VC6 to get rid of the following errors while building a DC++ .exe file?

--------------------Configuration: client - Win32 Debug--------------------
Compiling...
stdinc.cpp
e:\dc++compilingstuff\stlport\stl\_threads.h(116) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
e:\dc++compilingstuff\stlport\stl\_threads.h(116) : see declaration of 'InterlockedIncrement'
e:\dc++compilingstuff\stlport\stl\_threads.h(117) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
e:\dc++compilingstuff\stlport\stl\_threads.h(117) : see declaration of 'InterlockedDecrement'
e:\dc++compilingstuff\stlport\stl\_threads.h(118) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed
e:\dc++compilingstuff\stlport\stl\_threads.h(118) : see declaration of 'InterlockedExchange'
Error executing cl.exe.

DCPlusPlus.exe - 3 error(s), 0 warning(s)



I have updated the Platform SDK.
STL and WTL are also in the directories.

Greetz from Hell :)

PS: .NET2002 nor 2003 work for me
HELL is where you belong

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-09-21 11:38

Are you sure that you have included the sdk and stl _before_ normal includes?

If you want dc++ to compile with vs .net 2003 you´ll have to apply the patch t o stl port in THIS thread and then get the patch for dc++ HERE.
And be sure to read through both threads completly to get all information you need about the patching andd problems you can get(and how to solve them).

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-09-21 11:43

One more thing, are you using the original source or have you modified it?
If you´ve done so, try to compile the original and see if thats work.

Hell-razor
Posts: 12
Joined: 2003-01-05 18:50
Contact:

Post by Hell-razor » 2003-09-22 02:03

Thx for reply ;)

PS: I tried to compile original sources, aint working :(
HELL is where you belong

Locked