Troubles compiling 0.306(VS 7.1+stl 4.6+WTL 7.1)

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

Moderator: Moderators

Locked
[PT]Devilishly
Posts: 96
Joined: 2003-04-18 05:57
Location: Oporto, Portugal
Contact:

Troubles compiling 0.306(VS 7.1+stl 4.6+WTL 7.1)

Post by [PT]Devilishly » 2004-02-14 14:42

When I try to compile the new version of DC++, I receive these warnings:

Code: Select all

Build log was saved at "file://c:\Dc++\vc7\Debug\bzip\BuildLog.htm"
bzip2 - 0 error(s), 149 warning(s)
(you can grab the log here: BuildLog.htm)

And after the client is compiled(since it compiles...) the binary file is almost 3 MB, as u can see:
Image

I’ve downloaded the DCPlusPlus-STLPort-4.6.zip and DCPlusPlus-wtl7.1-src.zip (from Things needed for compiling) and install them in the directory “C:\include\Stlp� and “C:\include\WTL�;
Image
Then downloaded the file DCPlusPlus-0.306-src.zip to “C:\DC++� and opened the “DCPlusPlus.sln�. Once there, I changed my include directories to the new ones and compile it.
I've this version of Framework and vs:
Image

I would like to solve this warnings, can anyone help me?

Best regards,
[PT]Devilishly

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

Post by TheParanoidOne » 2004-02-14 17:59

Warnings are irrelevant (more or less). It's the errors that you should care about.
The world is coming to an end. Please log off.

DC++ Guide | Words

Wiz
Posts: 1
Joined: 2003-12-06 21:10

Post by Wiz » 2004-02-14 18:21

Try to select release and not debug when you compile.

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

Post by GargoyleMT » 2004-02-14 18:25

The project files are intentionally set at W0 for Release mode for zlib and bzip2 and W3 (or Warning Level 4) for Debug mode.

It's seriously not a problem that needs fixing, unless you know something I do not. :wink:

[PT]Devilishly
Posts: 96
Joined: 2003-04-18 05:57
Location: Oporto, Portugal
Contact:

Post by [PT]Devilishly » 2004-02-14 22:07

TheParanoidOne wrote:Warnings are irrelevant (more or less). It's the errors that you should care about.
GargoyleMT wrote:It's seriously not a problem that needs fixing, unless you know something I do not.
Yes, I don’t receive any errors. But is this normal “149� warnings?! And the file size, it is 30% larger then the original! Why does this happen?? In other clients(that require new stl+wtl), I even receive errors messages when browsing Settings menu...
Wiz wrote:Try to select release and not debug when you compile.
I don't know how to do this, but tomorrow I'll try to do it...

Best regards,
[PT]Devilishly

Twink
Posts: 436
Joined: 2003-03-31 23:31
Location: New Zealand

Post by Twink » 2004-02-14 23:11

It's bigger due to you compiling a debug version instead of a release version, there should be a drop down box somewhere that lets you change between the two if not its likely to be in the build or debug menu. Debugging builds have several advantages such as assert statements which let you put

ASSERT(condition);

throughout the code, if one of these fail then you'll get a abort, retry continue dialog letting you break out and see where this happened and why, ASSERTS are removed for the release builds.

[PT]Devilishly
Posts: 96
Joined: 2003-04-18 05:57
Location: Oporto, Portugal
Contact:

Post by [PT]Devilishly » 2004-02-15 08:24

I had it in debug mode... :oops: But now everything is as it should be :)
Well I really like this forum!!! Every time I’m stuck with some problem related with DC, u always (help me) solving my problem =)
Thanks a lot TheParanoidOne, Wiz , GargoyleMT and Twink!! :D

Best regards,
[PT]Devilishly

Locked