Problem when compiling: second C linkage of overloaded func
Moderator: Moderators
Problem when compiling: second C linkage of overloaded func
Hello, I have the following problem.
I have installed the latest SDK, the correct wtl and stl. The compile.txt is also read.
Compiling...
stdinc.cpp
e:\kildekode\dc++\stlport\stl\_threads.h(116) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
e:\kildekode\dc++\stlport\stl\_threads.h(116) : see declaration of 'InterlockedIncrement'
e:\kildekode\dc++\stlport\stl\_threads.h(117) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
e:\kildekode\dc++\stlport\stl\_threads.h(117) : see declaration of 'InterlockedDecrement'
e:\kildekode\dc++\stlport\stl\_threads.h(118) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed
e:\kildekode\dc++\stlport\stl\_threads.h(118) : see declaration of 'InterlockedExchange'
Error executing cl.exe.
If I omit lines 116-118 I get this:
Compiling...
stdafx.cpp
e:\kildekode\dc++\wtl\atlframe.h(274) : error C2146: syntax error : missing ';' before identifier 'lpnm'
e:\kildekode\dc++\wtl\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
e:\kildekode\dc++\wtl\atlframe.h(274) : error C2501: 'LPNMREBARCHEVRON' : missing storage-class or type specifiers
e:\kildekode\dc++\wtl\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
e:\kildekode\dc++\wtl\atlframe.h(274) : error C2501: 'lpnm' : missing storage-class or type specifiers
e:\kildekode\dc++\wtl\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
e:\kildekode\dc++\windows\stdafx.cpp(24) : error C2856: #pragma hdrstop cannot be inside an #if block
Error executing cl.exe.
Anyone got an idea?
I have installed the latest SDK, the correct wtl and stl. The compile.txt is also read.
Compiling...
stdinc.cpp
e:\kildekode\dc++\stlport\stl\_threads.h(116) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
e:\kildekode\dc++\stlport\stl\_threads.h(116) : see declaration of 'InterlockedIncrement'
e:\kildekode\dc++\stlport\stl\_threads.h(117) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
e:\kildekode\dc++\stlport\stl\_threads.h(117) : see declaration of 'InterlockedDecrement'
e:\kildekode\dc++\stlport\stl\_threads.h(118) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed
e:\kildekode\dc++\stlport\stl\_threads.h(118) : see declaration of 'InterlockedExchange'
Error executing cl.exe.
If I omit lines 116-118 I get this:
Compiling...
stdafx.cpp
e:\kildekode\dc++\wtl\atlframe.h(274) : error C2146: syntax error : missing ';' before identifier 'lpnm'
e:\kildekode\dc++\wtl\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
e:\kildekode\dc++\wtl\atlframe.h(274) : error C2501: 'LPNMREBARCHEVRON' : missing storage-class or type specifiers
e:\kildekode\dc++\wtl\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
e:\kildekode\dc++\wtl\atlframe.h(274) : error C2501: 'lpnm' : missing storage-class or type specifiers
e:\kildekode\dc++\wtl\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
e:\kildekode\dc++\windows\stdafx.cpp(24) : error C2856: #pragma hdrstop cannot be inside an #if block
Error executing cl.exe.
Anyone got an idea?
-
- Posts: 202
- Joined: 2003-01-06 06:22
- Location: Salford, England.
- Contact:
-
- Posts: 202
- Joined: 2003-01-06 06:22
- Location: Salford, England.
- Contact:
-
- Posts: 202
- Joined: 2003-01-06 06:22
- Location: Salford, England.
- Contact:
Simply going into yourTubal wrote:A lot of people say it works after they re-install the SDK, but it doesn't seem to work for me though. How do you register it?
Start menù --> Programs --> Microsoft Platform SDK --> Visual Studio Registration --> Register PSDK Directories with Visual Studio
That's all
I am having the exact same problem (http://dcplusplus.sourceforge.net/forum ... .php?t=980). I have tried everything suggested, but still get 3 errors,
error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
d:\share\dc++\stlport\stl\_threads.h(116) : see declaration of 'InterlockedIncrement'
I have installed SDK twice, I have registered it (well I click on the icon and the mouse goes 'busy' for a sec then back to normal, is this what suppose to happen?)
Any one have any other suggestions?
TIA,
Robert
error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
d:\share\dc++\stlport\stl\_threads.h(116) : see declaration of 'InterlockedIncrement'
I have installed SDK twice, I have registered it (well I click on the icon and the mouse goes 'busy' for a sec then back to normal, is this what suppose to happen?)
Any one have any other suggestions?
TIA,
Robert
Make sure that the STLport is highest in the list, ABOVE the WTL.
Make sure that the WTL is DIRECTLY below the STLport.
Make sure that the SDK directory is DIRECTLY below the WTL.
Thus, the lis should look like this:
STLport
WTL
SDK
<Some other stuff>
Sarf
---
I love work. I can just sit and look at it for hours.
Make sure that the WTL is DIRECTLY below the STLport.
Make sure that the SDK directory is DIRECTLY below the WTL.
Thus, the lis should look like this:
STLport
WTL
SDK
<Some other stuff>
Sarf
---
I love work. I can just sit and look at it for hours.
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
http://www.microsoft.com/msdownload/pla ... k-full.htmphrentec wrote:is there a link to download the SDK?
I think that's Mozilla friendly, although they want you to be running IE to get to the general "download Platform SDK" page... Wheee!!