Cant build

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

Moderator: Moderators

Locked
Haree
Posts: 4
Joined: 2006-06-01 16:26
Contact:

Cant build

Post by Haree » 2006-06-01 16:31

Hi, I am using Visual Studio Express 2005 and I have some problems with build.

------ Build started: Project: client, Configuration: Release Win32 ------
Building StringDefs.cpp and Example.xml from StringDefs.h (you need python installed for this to work)
Compiling...
stdinc.cpp
C:\DC++\stlport\cstdio(46) : error C2757: '__std_alias' : a symbol with this name already exists and therefore this name cannot be used as a namespace name
C:\DC++\stlport\cstdio(117) : error C2039: 'vsnprintf' : is not a member of 'std'
C:\DC++\stlport\cstdio(117) : error C2873: 'vsnprintf' : symbol cannot be used in a using-declaration
Build log was saved at "file://c:\DC++\vc7\Release\client\BuildLog.htm"
client - 3 error(s), 0 warning(s)
------ Build started: Project: DCPlusPlus, Configuration: Release Win32 ------
Compiling...
stdafx.cpp
C:\DC++\stlport\cstdio(46) : error C2757: '__std_alias' : a symbol with this name already exists and therefore this name cannot be used as a namespace name
C:\DC++\stlport\cstdio(117) : error C2039: 'vsnprintf' : is not a member of 'std'
C:\DC++\stlport\cstdio(117) : error C2873: 'vsnprintf' : symbol cannot be used in a using-declaration
c:\dc++\windows\stdafx.h(45) : fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory
Build log was saved at "file://c:\DC++\vc7\Release\windows\BuildLog.htm"
DCPlusPlus - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========


Do anyone know, what to do?

ullner
Forum Moderator
Posts: 333
Joined: 2004-09-10 11:00
Contact:

Re: Cant build

Post by ullner » 2006-06-01 17:23

Haree wrote:using Visual Studio Express 2005 [snip] Do anyone know, what to do?
DC++ will not compile with that. DC++ require Visual Studio 2003 or Visual Studio 2005. This is due to the fact that ATL/WTL 7 (or 8) isn't in the Express version.

Haree
Posts: 4
Joined: 2006-06-01 16:26
Contact:

Post by Haree » 2006-06-07 14:25

Now I have tried Visual Studio 2005 and the same problem occured :(

First problem occured when opening the .sln file. It wants conversion.
http://www.viktors.wz.cz/UpgradeLog2.XML - Coversion report

Some conversion screens:
Image Image Image

Error screen:
Image

ullner
Forum Moderator
Posts: 333
Joined: 2004-09-10 11:00
Contact:

Post by ullner » 2006-06-07 16:19

You might want to check out if all of the patches in Bug 689 is in stock DC++...

Haree
Posts: 4
Joined: 2006-06-01 16:26
Contact:

Post by Haree » 2006-06-07 17:37

ullner wrote:You might want to check out if all of the patches in Bug 689 is in stock DC++...
I don't understand that :? What can I do there?

ullner
Forum Moderator
Posts: 333
Joined: 2004-09-10 11:00
Contact:

Post by ullner » 2006-06-08 03:22

Check if the code that have a '+' before the line is added in DC++, and if lines starting with '-' is removed from DC++.

Haree
Posts: 4
Joined: 2006-06-01 16:26
Contact:

Post by Haree » 2006-06-08 05:56

ullner wrote:Check if the code that have a '+' before the line is added in DC++, and if lines starting with '-' is removed from DC++.
Oh, too hard for me... Do you have somewhere the source, that can be compiled with VS2005? If yes, please send me a link. thx

Pothead
Posts: 223
Joined: 2005-01-15 06:55

Post by Pothead » 2006-06-08 06:20

You got filenames with line numbers, -'s telling you to remove a line, and +'s telling you to add a line, and you find this to hard . . . so why are you even bothering trying to build dc++ ?

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

Post by joakim_tosteberg » 2006-06-11 15:19

Have you done everything as stated in compile.txt? More specifically I'm asking about
compile.txt wrote:
1) Download the source and STLPort from the DC++ download site. Unpack the DC++ source. Unpack the STLport source into the stlport directory.
Download WTL from http://sf.net/projects/wtl. Unpack it to the wtl folder.
Download YaSSL from http://yassl.com/. Unpack it to the yassl folder.

Locked