compiling problems

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

Moderator: Moderators

Locked
IkeMiller2662
Posts: 5
Joined: 2003-02-22 23:05

compiling problems

Post by IkeMiller2662 » 2003-02-23 11:14

when i try to compile i get these errors everytime.


h:\dc++ code\stlport-4.5.3-dcpp\stlport\stl\_threads.h(116) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
h:\dc++ code\stlport-4.5.3-dcpp\stlport\stl\_threads.h(116) : see declaration of 'InterlockedIncrement'
h:\dc++ code\stlport-4.5.3-dcpp\stlport\stl\_threads.h(117) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
h:\dc++ code\stlport-4.5.3-dcpp\stlport\stl\_threads.h(117) : see declaration of 'InterlockedDecrement'
h:\dc++ code\stlport-4.5.3-dcpp\stlport\stl\_threads.h(118) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed
h:\dc++ code\stlport-4.5.3-dcpp\stlport\stl\_threads.h(118) : see declaration of 'InterlockedExchange'
Error executing cl.exe.

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

i have no idea what they mean or how to get around them.
i am using
stlport-4.5.3-dcpp
DCPlusPlus-wtl7.0
DCPlusPlus-0.232-src

i am using the latest core sdk from microsoft and VC++ to compile.

IkeMiller2662
Posts: 5
Joined: 2003-02-22 23:05

Post by IkeMiller2662 » 2003-02-23 13:14

sorry i don't know why it isn't in "Help" oops, sorry.

sarf
Posts: 382
Joined: 2003-01-24 05:43
Location: Sweden
Contact:

Post by sarf » 2003-02-24 15:24

Look here for info about this problem and how to fix it.

Sarf
---
And the Lord spake unto Elvis, "Thou hast spoken against me Elvis, and I curse thee to have thy blue suede shoes trod upon for all time..."

IkeMiller2662
Posts: 5
Joined: 2003-02-22 23:05

Post by IkeMiller2662 » 2003-02-24 15:47

yeah i started out looking there and found nothing there fixed the problems. i even asked the person who started the thread and he still had not found the answers.

sarf
Posts: 382
Joined: 2003-01-24 05:43
Location: Sweden
Contact:

Post by sarf » 2003-02-25 07:18

OK, then. This is how you do it (quickie version, not too much explaining).

Find the "include file"-directory list box in the GUI of your IDE.
Make sure to move the STLport directory so that it is FIRST in the listbox.
Make sure to mvoe the WTL directory so that it is SECOND in the listbox.
Putting the SDK directory THIRD would be a good choice.

Press OK, and try to compile.

Sarf
---
Never trust a cop with a rubber glove.

IkeMiller2662
Posts: 5
Joined: 2003-02-22 23:05

Post by IkeMiller2662 » 2003-02-25 15:44

'Tis already like that.

NoFiX
Posts: 19
Joined: 2003-02-23 10:39

Post by NoFiX » 2003-02-26 09:09

If you cannot figure out how to compile DC++, chances are you shouldn't be in the first place. Oh, that's right, you need a hacked version so you can get others banned for your ignorance!

In that same respect, I wish someone wouldn't of helped sarf compile the damn thing!!

IkeMiller2662
Posts: 5
Joined: 2003-02-22 23:05

Post by IkeMiller2662 » 2003-02-26 15:57

Well I needed to be able to compile it so that it won't crash when I press the "Finished downloads" button, but I can feel your overwhelming compassion for those whom are new at this so I will go else were with my questions.

sarf
Posts: 382
Joined: 2003-01-24 05:43
Location: Sweden
Contact:

Post by sarf » 2003-02-28 11:05

Make sure you are using the "right" versions of STLport and WTL. I've used files put on the DC++ SourceForge download page, but other people have had issues with this... search for STLport on the forums if you think this may help you.

Sarf
---
If your face were a tree, it would be different.

Neg
Posts: 20
Joined: 2003-01-19 07:05

Post by Neg » 2003-02-28 11:24

After you have moved the include paths around always do a make clean befor you try to compile it again else the moved include paths will only effect the files that have not yet been succesfully compiled. And i think the stl port have a new namedecoration to the std components than VC++ default uses. I experienced this when i recompiled my librarys and tryed take em with me to school....

d82k
Posts: 6
Joined: 2003-03-03 09:13

Post by d82k » 2003-03-03 09:50

Sorry if i intromit but...
Where I can download the SDK you are talking about... acuse I don't have it!
ThankYou!
dk

Atomic Jo
Posts: 62
Joined: 2003-01-04 03:50
Location: Québec, Canada
Contact:

Post by Atomic Jo » 2003-03-04 20:52


GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-07 21:46
Location: .pa.us

Post by GargoyleMT » 2003-03-04 21:01

They've gotta have the SDK somewhere for non IE browsers to download, or for admins to download and redistribute to all the programmers in the company... but I had no luck in finding it. Firing up IE and letting something auto-install is not my preferred modus operandi. (But they also missed the memo where they have pass all changes by me :))

nbv4
Posts: 2
Joined: 2003-02-16 01:58

Post by nbv4 » 2003-03-09 15:20

make sure your includes look exactly like this:

Image

Locked