Overloded problem

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

Moderator: Moderators

Locked
bens
Posts: 4
Joined: 2003-11-03 17:43

Overloded problem

Post by bens » 2003-11-03 17:48

I Get this error :
-------------------


--------------------Configuration: client - Win32 Release--------------------
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.
E:\MESDOCS\DC++ SOURCES\STL+\stl/_threads.h(120) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
E:\MESDOCS\DC++ SOURCES\STL+\stl/_threads.h(120) : see declaration of 'InterlockedIncrement'
E:\MESDOCS\DC++ SOURCES\STL+\stl/_threads.h(121) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
E:\MESDOCS\DC++ SOURCES\STL+\stl/_threads.h(121) : see declaration of 'InterlockedDecrement'
E:\MESDOCS\DC++ SOURCES\STL+\stl/_threads.h(122) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed
E:\MESDOCS\DC++ SOURCES\STL+\stl/_threads.h(122) : see declaration of 'InterlockedExchange'
Error executing cl.exe.

client.lib - 3 error(s), 0 warning(s)


--------------------------

Can smbdy help me?

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

Re: Overloded problem

Post by GargoyleMT » 2003-11-03 21:20

Both of the problems (InterlockedIncrement) and the Winver seem to point to you needing a new SDK. If you're using VS6, did you grab the current one? If you're using .NET or .NET 2003, you should've been fine...

bens
Posts: 4
Joined: 2003-11-03 17:43

Compte rendu

Post by bens » 2003-11-05 16:56

En fait j'ai VC6 et l'update que j'ai chopé est dans la mauvaise langue!
Mais en fait je crois que je vais attendre Visual .NET qui arrive...
Bref, j'ai chopé SDK et ca ne changeais rien, le pb se règlera donc avec la bonne update ou Visual .NET
Merci!

TheNOP
Posts: 275
Joined: 2003-07-07 21:41
Location: Quebec

Re: Compte rendu

Post by TheNOP » 2003-11-05 21:46

bens wrote:En fait j'ai VC6 et l'update que j'ai chopé est dans la mauvaise langue!
Mais en fait je crois que je vais attendre Visual .NET qui arrive...
Bref, j'ai chopé SDK et ca ne changeais rien, le pb se règlera donc avec la bonne update ou Visual .NET
Merci!
translation

in faq, i have vc6 and the update, but the update is in the wrong language.
but i think that i will wait for .net, witch is on is way...
i got the SDK but it doesnt change anything, so the problem should be resolve with the good update or with .net version.
thanks
TheNOP

Have you read the FAQ?
Or the sticky ? It might give you idea.

bens
Posts: 4
Joined: 2003-11-03 17:43

Still a problem

Post by bens » 2003-11-14 12:19

Sorry for french speaking and thanks for translation!

I got Visual .NET and my previous problem is gone. But I've got another problem yet : a linking error

DCPlusPlus error LNK2019: unresolved external symbol "public: long __thiscall StatsFrame::onSize(unsigned int,unsigned int,long,int &)" (?onSize@StatsFrame@@QAEJIIJAAH@Z) referenced in function "public: virtual int __thiscall StatsFrame::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@StatsFrame@@UAEHPAUHWND__@@IIJAAJK@Z)

It must be nothing but I don't know what to do.

Please help!

Gratch06
Posts: 141
Joined: 2003-05-25 01:48
Location: USA

Post by Gratch06 » 2003-11-14 13:41

Add the statsframe.h/cpp files to your project and then recompile. You may need to do a clean build.

bens
Posts: 4
Joined: 2003-11-03 17:43

It should be included!

Post by bens » 2003-11-14 19:29

Thanks!
After having added StatsFrame and two other files needed as well, the build succeded!

It's allwright

Locked