Compiling V:0.301 with VC++ 6 (C4182+C1076)

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

Moderator: Moderators

Locked
Dyl@n
Posts: 8
Joined: 2003-11-06 16:11

Compiling V:0.301 with VC++ 6 (C4182+C1076)

Post by Dyl@n » 2003-11-06 17:23

I use Microsoft Visual C++ 6.0 ,STLPort-4.5.1020, wtl7.0, and Core sdk.
My OS: winXPpro
V:0.301

When I compile I get this error. :cry:


--------------------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:\include\stdarg.h(23) : warning C4182: #include nesting level is 363 deep; possible infinite recursion
c:\include\stdarg.h(23) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
Error executing cl.exe.

DCPlusPlus.exe - 1 error(s), 1 warning(s)
---------------------------------------------------------------------------

How fix it? :?:

Please help me.
Bye bye

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2003-11-06 17:45

You need to update your SDK.
The world is coming to an end. Please log off.

DC++ Guide | Words

Dyl@n
Posts: 8
Joined: 2003-11-06 16:11

SDK

Post by Dyl@n » 2003-11-06 18:24

I update my SDK from http://www.microsoft.com/msdownload/pla ... sdkupdate/
The Windows SDK consists of the following components:

Core SDK
Internet Development SDK
IIS SDK
MDAC SDK
Windows Installer SDK
WMI SDK
Windows Media Services SDK

But when I compile I get the error (up there). :cry:
...any ideas?

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2003-11-06 18:46

Did you add the new SDK to the Includes?
The world is coming to an end. Please log off.

DC++ Guide | Words

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

Post by joakim_tosteberg » 2003-11-07 01:39

TheParanoidOne wrote:Did you add the new SDK to the Includes?
To the top of your includes more exatcly. :wink:

Dyl@n
Posts: 8
Joined: 2003-11-06 16:11

Post by Dyl@n » 2003-11-07 03:11

My includes:

Image

But when I compile I get the error (up there)... :cry:

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

Post by joakim_tosteberg » 2003-11-07 07:17

What is the c:\include?
If it is what I tink it is so is it wrong, the stlport and wtl should be in different folders and the stlport shold ome before standard includepaths while wtl can go after standard includes.

Dyl@n
Posts: 8
Joined: 2003-11-06 16:11

Post by Dyl@n » 2003-11-07 08:24

My includes now:

Image

But when I compile I get this error: :(

Code: Select all

--------------------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:\stlport-4.5.1020\stl\_threads.h(120) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
        c:\stlport-4.5.1020\stl\_threads.h(120) : see declaration of 'InterlockedIncrement'
c:\stlport-4.5.1020\stl\_threads.h(121) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
        c:\stlport-4.5.1020\stl\_threads.h(121) : see declaration of 'InterlockedDecrement'
c:\stlport-4.5.1020\stl\_threads.h(122) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed
        c:\stlport-4.5.1020\stl\_threads.h(122) : see declaration of 'InterlockedExchange'
Error executing cl.exe.

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

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

Post by joakim_tosteberg » 2003-11-07 08:36

Buy yourself visual studio .net :lol:

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

Post by joakim_tosteberg » 2003-11-07 08:37

Try to reinstall Microsoft Visual C++ 6.0 and redownload the dc++ source.
Also, be sure to use the latest servicepack for vc++ 6.0

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2003-11-07 08:56

IIRC, there is an "include" folder in the SDK folder. I *think* that's the one you should be adding.
The world is coming to an end. Please log off.

DC++ Guide | Words

Dyl@n
Posts: 8
Joined: 2003-11-06 16:11

Post by Dyl@n » 2003-11-07 09:29

joakim_tosteberg:
Thanks for your help, but my vc6 is fresh, and i use Visual Studio 6.0 Service Pack 5. :?
And i try compile with redownloaded dc++ source,
but i get errors (up there).

TheParanoidOne:
Thanks for your help, but if i add only "sdk/include" to my includes,
i get 188 errors, 29 warnings.
Ergo i think its a bad idea. :wink:

(Sorry for my English :oops: )

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

Post by Atomic Jo » 2003-11-07 10:19

I think you must place the Wtl include directory in top of your "include's paths". This is just to not having complementary errors/warnings during compilation.

Dyl@n
Posts: 8
Joined: 2003-11-06 16:11

Post by Dyl@n » 2003-11-07 11:07

Atomic Jo:
I also tried this way before.
See message up there. (Posted: 2003-11-07 08:11)

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

Post by joakim_tosteberg » 2003-11-07 11:54

Dyl@n, that you get quite many errors then using vc6 is quit normal. Its because the vc6 project file not are maintaines so you'll have to add some files to the project manually. If you can't find out which file, post your errors here and we will tell you which files.

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

Post by GargoyleMT » 2003-11-07 12:06

Dyl@n wrote:Thanks for your help, but if i add only "sdk/include" to my includes,
i get 188 errors, 29 warnings.
Ergo i think its a bad idea. :wink:

(Sorry for my English :oops: )
Are any of those link errors? Perhaps you should modify the Library path in addition to your Include path.

Dyl@n
Posts: 8
Joined: 2003-11-06 16:11

Post by Dyl@n » 2003-11-09 12:19

Thanks for your help. I try use vc7. Bye

Dyl@n
Posts: 8
Joined: 2003-11-06 16:11

Post by Dyl@n » 2003-11-10 06:00

I use vc7.1 now. And i can compile dc++. :D

Locked