Compile help [split]

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

Moderator: Moderators

Locked
Lord.Sabbath
Posts: 12
Joined: 2005-10-06 11:09
Location: Brazil
Contact:

Post by Lord.Sabbath » 2006-07-12 17:51

My problem is the same, so I decided do not open a new thread, I hope you understand that. So, Iwas trying to compile zmDC++ and Zion++, but I got a LOT of erros. In both clients, I've got these errors:

d:\ v i s u a l s t u d i o \6. beta test \client\stdinc.h(92): error C2871: '_STL' : a namespace with this name does not exist
d:\ v i s u a l s t u d i o \6. beta test \client\../configZmdc.h(28): error C2146: syntax error : missing ';' before identifier 'zionTrace'
d:\ v i s u a l s t u d i o \6. beta test \client\../configZmdc.h(28): error C2061: syntax error : identifier 'string'
d:\ v i s u a l s t u d i o \6. beta test \client\../configZmdc.h(28): warning C4183: 'zionTrace': missing return type; assumed to be a member function returning 'int'
d:\ v i s u a l s t u d i o \6. beta test \client\DCPlusPlus.h(77): error C2143: syntax error : missing ';' before '<'
d:\ v i s u a l s t u d i o \6. beta test \client\DCPlusPlus.h(78): error C2653: 'StringList' : is not a class or namespace name
d:\ v i s u a l s t u d i o \6. beta test \client\DCPlusPlus.h(78): error C2146: syntax error : missing ';' before identifier 'StringIter'
d:\ v i s u a l s t u d i o \6. beta test \client\DCPlusPlus.h(78): error C2501: 'StringIter' : missing storage-class or type specifiers
d:\ v i s u a l s t u d i o \6. beta test \client\DCPlusPlus.h(79): error C2653: 'StringList' : is not a class or namespace name
d:\ v i s u a l s t u d i o \6. beta test \client\DCPlusPlus.h(79): error C2146: syntax error : missing ';' before identifier 'StringIterC'
d:\ v i s u a l s t u d i o \6. beta test \client\DCPlusPlus.h(79): error C2501: 'StringIterC' : missing storage-class or type specifiers
d:\ v i s u a l s t u d i o \6. beta test \client\DCPlusPlus.h(81): error C2143: syntax error : missing ';' before '<'

(...ETC...)

What can be wrong? Any help will be welcome, thanks so much in advance.

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

Post by Pothead » 2006-07-12 19:57

Wrong STL Port ? STL Port included badly ?

Carraya
Posts: 112
Joined: 2004-09-21 11:43

Post by Carraya » 2006-07-13 02:47

Zion uses the "real" STLPort...
<random funny comment>

Lord.Sabbath
Posts: 12
Joined: 2005-10-06 11:09
Location: Brazil
Contact:

Post by Lord.Sabbath » 2006-07-13 04:52

Carraya wrote:Zion uses the "real" STLPort...
Thank you, Carraya, but... what does this it means? :oops:

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

Post by ullner » 2006-07-13 06:58

It means that the STLport supplied in the DC++ project is a modified version. There is an unmodified version at STLport's project page. Use that one.

Lord.Sabbath
Posts: 12
Joined: 2005-10-06 11:09
Location: Brazil
Contact:

Post by Lord.Sabbath » 2006-07-13 07:45

Thanks you, ullner, but I did what you said and the problem still boring me...

I downloaded the file STLport-4.6.2.tar.tar from http://www.stlport.org/ - give a look how I build the source code in theWindows Explorer:

Exemple 1: Zion++ source code:

Image

Exemple 2: stlport folder:

Image

Is there anything wrong yet? :cry:

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

Post by Pothead » 2006-07-13 07:49

Nope, that looks fine. :)
Is Zion multisource ? If so you'll need to compile the STLPort. :)

Lord.Sabbath
Posts: 12
Joined: 2005-10-06 11:09
Location: Brazil
Contact:

Post by Lord.Sabbath » 2006-07-13 09:20

Yes, it is.
How must I do that? Because I don't see a *.sln file into the STLPort folder... :oops:

Carraya
Posts: 112
Joined: 2004-09-21 11:43

Post by Carraya » 2006-07-13 09:45

you should only have the files from the source subfolder of stlport
<random funny comment>

Lord.Sabbath
Posts: 12
Joined: 2005-10-06 11:09
Location: Brazil
Contact:

Post by Lord.Sabbath » 2006-07-13 09:54

mmm... if I understood, must I delete doc, etc, src and test folders into the stlport and keep only the countents from the stlport subdirectory? :?:

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

Post by Pothead » 2006-07-13 10:37

Carraya wrote:you should only have the files from the source subfolder of stlport
o, my bad, didn't know that one.
Lord.Sabbath, something i wrote a long time ago might help you compile StlPort . . . .
Pothead wrote:Easy way to compile STLPort. Download
http://www.freetohost.co.uk/mike/STLpor ... taller.rar

Run the install.bat file

Lord.Sabbath
Posts: 12
Joined: 2005-10-06 11:09
Location: Brazil
Contact:

Post by Lord.Sabbath » 2006-07-13 11:22

Thanks so much, Pothead, but I unzipped your file into the stlport folder, run bat file and, again, I'vw got that message error C2871: '_STL' : a namespace with this name does not exist (in stdinc.h ) and so on...

What I did: unzipped your file into that folder, I Kept only the correct files into it and run the bat file one. Finally, I used Visual Studio to build the exe file, but... still the same problem... Did I do correctly? :oops: :oops: :oops:

Many thanks in advance... :oops: :oops: :oops: :oops: :oops:

Carraya
Posts: 112
Joined: 2004-09-21 11:43

Post by Carraya » 2006-07-13 14:59

Lord.Sabbath wrote:mmm... if I understood, must I delete doc, etc, src and test folders into the stlport and keep only the countents from the stlport subdirectory? :?:
no you should delete all files and subfolders from stlport dir except the src subdir, the content of the source subdir you should place in the stlport dir, and then remove the src subdir... :)
<random funny comment>

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

Post by Pothead » 2006-07-13 20:23

Lord.Sabbath wrote:What I did: unzipped your file into that folder, I Kept only the correct files into it and run the bat file one. Finally, I used Visual Studio to build the exe file, but... still the same problem... Did I do correctly? :oops: :oops: :oops:
With that, you can unzip anywhere, don't delete anything, run the bat file, and it "should" compile it and place the files in the right place of Visual Studio's includes.
Try what Carraya said.
If you still having trouble, the project files might not be setup correctly. So try adding STLPort as a global include by :
1. Goto Tools menu
2. Choose Options
3. Click on Projects
4. Click on VC++ Directories
5. Change the drop down box on the right to Include Files
6. Add the STLPort directory to there :)

Lord.Sabbath
Posts: 12
Joined: 2005-10-06 11:09
Location: Brazil
Contact:

Post by Lord.Sabbath » 2006-07-14 20:23

well, after a LOT of tests, I can see now a lot of syntax errors... I can't believe the source code has so many errors... all of them are in _sstream.c file...

Now, I see that the compilation is a little better (because of tips from Carraya and Pothead) but I still got those errors.... I don't know what, then, I must to do...

Anyway, thank you so much - Carraya and Pothead - for your time, I really has a big respect for you two. Thanks a lot. :cry:

Quattro
Posts: 166
Joined: 2006-01-11 09:23

Post by Quattro » 2006-07-15 01:19

doesn't zion++ need WTL and natupnp?
those are the most common files needed for compiling i.e. DCDM and some other clients.
maybe someone here can provide some links?
You can send a message around the world in 1/7 of a second; yet it may take several years to move a simple idea through a 1/4 inch of human skull.

Lord.Sabbath
Posts: 12
Joined: 2005-10-06 11:09
Location: Brazil
Contact:

Post by Lord.Sabbath » 2006-08-16 12:12

It's TERRIBLE!!!!!!!!!!!
Why the coders does not include both stlport and wtl folders into the source code????????I did try a lot of things and yet can't build Zion++ (blue edition)!!!!
I did try wtl 7.5, 8.0, stlport 4.6.2 and so on, but I got a LOT of errors when compiling!!!!! I tryed Visual studio 2003 and 2005 and nothing!!!
Also, I tried the same with zmDC++, Xion++ and iDC++... ERRORS, ERROS AND ERRORS!!!!!
Is there a place where can I download both folders ready to use????

adrian_007
Posts: 32
Joined: 2006-03-06 10:54
Location: Poland

Post by adrian_007 » 2006-08-16 16:27

Lord.Sabbath, read this
Pothead wrote:If you still having trouble, the project files might not be setup correctly. So try adding STLPort as a global include by :
1. Goto Tools menu
2. Choose Options
3. Click on Projects
4. Click on VC++ Directories
5. Change the drop down box on the right to Include Files
6. Add the STLPort directory to there Smile

Lord.Sabbath
Posts: 12
Joined: 2005-10-06 11:09
Location: Brazil
Contact:

Post by Lord.Sabbath » 2006-08-16 17:40

And?

Quattro
Posts: 166
Joined: 2006-01-11 09:23

Post by Quattro » 2006-08-17 03:46

try to compile after you did the above...
You can send a message around the world in 1/7 of a second; yet it may take several years to move a simple idea through a 1/4 inch of human skull.

Lord.Sabbath
Posts: 12
Joined: 2005-10-06 11:09
Location: Brazil
Contact:

Post by Lord.Sabbath » 2006-08-17 05:24

Thank you.

Anyway, sorry for my great ignorance, but how can I compile?I don't know how to do it... If anyone have a little patience, please, tell me how to do it, because DCDM and DC++ does not need to do that so I never did that before... :oops:

Many thanks in advance...

p.s.: another question - is it usefull to keep both versions, 2003 and 2005 of Visual Studio installed in PC? :oops:

Quattro
Posts: 166
Joined: 2006-01-11 09:23

Post by Quattro » 2006-08-17 05:30

i don't have 2005 installed but i believe 2005 misses a lot of libraries...
i guess you should ask someone else for that...
as for compiling stl, there should be some kind of readme on how to compile it.
or try the STLport website
You can send a message around the world in 1/7 of a second; yet it may take several years to move a simple idea through a 1/4 inch of human skull.

Lord.Sabbath
Posts: 12
Joined: 2005-10-06 11:09
Location: Brazil
Contact:

Post by Lord.Sabbath » 2006-08-17 05:52

1- Both, "compile.txt" and STLPort Websit are not clear about that... :cry:
Thank you very much, anyway. :cry:

2- p.s. - I know that VS 2005 is "better" to some sources, but can I build all DC Clients with only VS 2003 or it's "absolutely necessary" 2005 to build some clients? Does anyone can tell me, please? :oops:
Last edited by Lord.Sabbath on 2006-08-17 05:58, edited 1 time in total.

adrian_007
Posts: 32
Joined: 2006-03-06 10:54
Location: Poland

Post by adrian_007 » 2006-08-17 05:58

did u include /wtl folder in vs? remember, that stlport dir MUST be on the top of the include list, and wtl under stl :P

Lord.Sabbath
Posts: 12
Joined: 2005-10-06 11:09
Location: Brazil
Contact:

Post by Lord.Sabbath » 2006-08-17 06:01

I did include wtl and stlport into the source code directory (see the pictures few posts above), not into the vs. I just did what Pothead told me in that little guide.
Where must I put wtl and stlport into the Visual Studio????

P.S.: maybe a picture with full contents (like mine above) will can help better... (if anyone have a time to do that, of course... :oops:

What does means that errors: :?:

D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(352): error C2059: syntax error : '&&'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(354): error C2059: syntax error : '&&'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(410): error C2059: syntax error : '&&'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(352): error C2059: syntax error : '&&'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(354): error C2059: syntax error : '&&'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(410): error C2059: syntax error : '&&'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(379): error C2059: syntax error : ')'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(388): error C2059: syntax error : ')'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(418): error C2059: syntax error : ')'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(424): error C2059: syntax error : ')'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(379): error C2059: syntax error : ')'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(388): error C2059: syntax error : ')'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(418): error C2059: syntax error : ')'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(424): error C2059: syntax error : ')'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(370): error C2059: syntax error : '?'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(370): error C2059: syntax error : '?'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(379): error C2143: syntax error : missing ';' before '{'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(388): error C2143: syntax error : missing ';' before '{'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(418): error C2143: syntax error : missing ';' before '{'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(424): error C2143: syntax error : missing ';' before '{'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(379): error C2143: syntax error : missing ';' before '{'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(388): error C2143: syntax error : missing ';' before '{'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(418): error C2143: syntax error : missing ';' before '{'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(424): error C2143: syntax error : missing ';' before '{'
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(345): error C2143: syntax error : missing ';' before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(348): error C2143: syntax error : missing ';' before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(350): error C2143: syntax error : missing ';' before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(345): error C2143: syntax error : missing ';' before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(348): error C2143: syntax error : missing ';' before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(350): error C2143: syntax error : missing ';' before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(349): error C2181: illegal else without matching if
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(354): error C2181: illegal else without matching if
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(349): error C2181: illegal else without matching if
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(354): error C2181: illegal else without matching if
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(340): error C2513: 'bool' : no variable declared before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(341): error C2513: 'bool' : no variable declared before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(407): error C2513: 'bool' : no variable declared before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(408): error C2513: 'bool' : no variable declared before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(340): error C2513: 'bool' : no variable declared before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(341): error C2513: 'bool' : no variable declared before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(407): error C2513: 'bool' : no variable declared before '='
D:\ V I S U A L S T U D I O \7. BETA TEST \stlport\stl/_sstream.c(408): error C2513: 'bool' : no variable declared before '='

adrian_007
Posts: 32
Joined: 2006-03-06 10:54
Location: Poland

Post by adrian_007 » 2006-08-17 15:38

let start it again...
1. download stlport with installer click
2. unrar stl and run .bat file - stlport will install in vs include directories
3. download wtl, place it where u want, but remember patch to it
4. open Zion solution if u want to compile zion, then:
Pothead wrote:1. Goto Tools menu
2. Choose Options
3. Click on Projects
4. Click on VC++ Directories
5. Change the drop down box on the right to Include Files
6. Add the STLPort directory to there
stlport is in visual studio /include folder

Code: Select all

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stlport
and also add wtl /include directory

for regular dc++
1. download stlport
2. download wtl
3. unrar them and place files in /wtl and /stlport dirs
4. compile :)
enjoy

Locked