Compiling DC++ Problems - YAPT

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

Moderator: Moderators

Locked
neo_born
Posts: 9
Joined: 2003-01-27 12:21

Compiling DC++ Problems - YAPT

Post by neo_born » 2004-09-01 13:31

I am trying to compile DC++ but it is not working I am getting:

------ Build started: Project: client, Configuration: Release Win32 ------

Compiling...
stdinc.cpp
c:\Documents and Settings\Neo\Desktop\Temp\DC++ Software n Sources\RevConnect-0.403b-src\client\stdinc.h(64) : error C2871: '_STL' : a namespace with this name does not exist

Build log was saved at "file://c:\Documents and Settings\Neo\Desktop\Temp\DC++ Software n Sources\src\vc7\Release\client\BuildLog.htm"
client - 1 error(s), 0 warning(s)


------ Build started: Project: DCPlusPlus, Configuration: Release Win32 ------

Compiling...
Stdafx.cpp
c:\Documents and Settings\Neo\Desktop\Temp\DC++ Software n Sources\src\windows\../client\stdinc.h(64) : error C2871: '_STL' : a namespace with this name does not exist

I have followed the compile txt as well. I have added the folders to the includes under options>VC Directories etc and also under each subdirectory i.e. zlib, client etc but am still geting these errors. I am using vsnet2003. I am using STLport-4.6.2.tar.gz and wtl75_4196.zip.

I am new to this whole compiling scene so I would also like to know when I build the solution/release I should end up with an executable no?

Thanks for any help in advance.
Peace!

neo_born
Posts: 9
Joined: 2003-01-27 12:21

Post by neo_born » 2004-09-01 15:53

ok I have gotten a little further. I did not go far enough or to a low enough level of folders for stlport. I am now having a new problem:

LINK : fatal error LNK1104: cannot open file 'stlport_vc71_static.lib'

any help anyone? Also at the end of doing a release build will I get teh .exe?
Peace!

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

Post by TheParanoidOne » 2004-09-01 16:37

I don't think you downloaded the STLPort from the DC++ website. Do that and try again.
The world is coming to an end. Please log off.

DC++ Guide | Words

PseudonympH
Forum Moderator
Posts: 366
Joined: 2004-03-06 02:46

Post by PseudonympH » 2004-09-01 17:12

I seem to remember Reverse Connect needing something weird with regards to STLPort. I could be wrong, though.

neo_born
Posts: 9
Joined: 2003-01-27 12:21

Post by neo_born » 2004-09-01 17:26

I still get the same error
Peace!

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

Post by TheParanoidOne » 2004-09-01 17:46

neo_born wrote:I still get the same error

Which one? The namespace one or the static lib one?

Searching the Programmers Help section with the namespace error message as the search term, I got 8 results, such as this one. Have you looked at the existing threads yet? You may your answer there.
The world is coming to an end. Please log off.

DC++ Guide | Words

neo_born
Posts: 9
Joined: 2003-01-27 12:21

Post by neo_born » 2004-09-01 18:34

It's ok there seems to be a little lag in the conversation here :)

I have now resolved this error with RCDC you have to build the stlport or something so I built it. I followed this:

Taken from another site:

Tested and working step by step instructions how to install STLport

1. Download the windows version of STLport from http://www.stlport.org/. (STLport-4.6.1.tar.gz is needed... new STLport-4.6.2.tar.gz gives errors)

2. Unzip it into any directory go to the src directory (eg C:\Programing\STLport-4.6.1\src) and rename the file vc71.mak to makefile (with no extension).

3. Go to your command prompt! (you can not do following steps in Total Commander it won't work!) and change directory to the Visual C++ bin directory like this "cd Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin" this is where you find the vcvars32.bat file. Now enter in vcvars32.bat. Then change to the directory where you unzipped STLport (eg C:\Programing\STLport-4.6.1\src).

4. Now enter "nmake clean all" and STLport will build itself as a release build. To get a debug build enter "nmake debug_static" and then "nmake debug_dynamic".

5. After building enter "nmake install" and it will install all necessary headers, libs and dlls into their appropriate directories.

6. Now open Visual Studio. Then go to the "Tools" and then "Options" menu and find the "Projects" heading, click on that and go to the "VC++ directories" heading. There you select "Include Files" and you add the STLport header directory which should be "Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stlport" (or anywhere you have STLport unpacked eg C:\Programing\STLport-4.6.1\stlport). Then click on the up arrow and make sure that the directory goes all the way to the top of the list.

7. And as the last in File menu choose "build" and there "configuration manager" and change it from "Debug" into "Release".

8. To compile choose "Build" and "Build Solution"

But am still receiving the error:

------ Build started: Project: DCPlusPlus, Configuration: Release Win32 ------

Linking...
LINK : fatal error LNK1104: cannot open file 'stlport_vc71_static.lib'
Peace!

Gasman1015
Posts: 184
Joined: 2003-05-26 11:29
Location: UK

Post by Gasman1015 » 2004-09-02 01:45

TheParanoidOne wrote:I don't think you downloaded the STLPort from the DC++ website. Do that and try again.


Here lies your answer if you want to compile DC++.
Always remember you're unique, just like everyone else.

neo_born
Posts: 9
Joined: 2003-01-27 12:21

Post by neo_born » 2004-09-02 16:25

It's amazing no matter how much effort I put in all I seem to get is people that cannot or do not explain what the problem is. I would like a little more detail rather than a one line reply please n thank you. Why do you think that stlport is the problem? What gives you this impression? I have other questions above (simple ones for smart people) that still have not been answered.

*note* if you do know what you are doing adn are a capable of compiling and troubleshooting please reply, if you are only capable of giving the least amount of attention in one line replies please do not bother with even trying to reply to this thread thank you.

Anyone know where I can go to find competent help?
Peace!

neo_born
Posts: 9
Joined: 2003-01-27 12:21

Post by neo_born » 2004-09-02 16:28

1. With the DCPlusPlus STLPort do I still have to build it like in the directions above?

2. When I click on build solution at the end of compiling will I have an executable i.e. DCPlusPlus.exe?
Peace!

Gasman1015
Posts: 184
Joined: 2003-05-26 11:29
Location: UK

Post by Gasman1015 » 2004-09-02 16:42

neo_born wrote:1. With the DCPlusPlus STLPort do I still have to build it like in the directions above?


No, you only have to build it like that for Reverse Connect.

neo_born wrote:2. When I click on build solution at the end of compiling will I have an executable i.e. DCPlusPlus.exe?


Yes, if you ever get that far.

And, no I have no intention of holding your hand through such a simple process.

You would appear to be attempting to compile RCDC and DC using the same StlPort in your settings.

What effort.?
Always remember you're unique, just like everyone else.

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

Post by joakim_tosteberg » 2004-09-03 00:02

There's a complete guide at http://www.imperialnet.org/forum/viewtopic.php?t=511 it's for DCDM++ but you do it the same way for DC++.

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

Post by GargoyleMT » 2004-09-03 20:16

neo_born wrote: Why do you think that stlport is the problem? What gives you this impression?

Because it is.

Code: Select all

LINK : fatal error LNK1104: cannot open file 'stlport_vc71_static.lib'


DC++'s stlport doesn't link into the code as a library. However, the one required by some DC++ mods does. And since this is the DC++ forum, we know our own software best.

neo_born wrote:Anyone know where I can go to find competent help?

I believe you're actually getting it.

neo_born
Posts: 9
Joined: 2003-01-27 12:21

Post by neo_born » 2004-09-05 08:07

I am trying to compile RCDC++ and am getting the link error, can anyone tell me what is the cause of this error and what does it mean?

Thanks.
Peace!

PseudonympH
Forum Moderator
Posts: 366
Joined: 2004-03-06 02:46

Post by PseudonympH » 2004-09-05 10:51

Wouldn't it make more sense to ask at the RevConnect forums?

neo_born
Posts: 9
Joined: 2003-01-27 12:21

Post by neo_born » 2004-09-05 18:05

No not at all really, this is a STLPort error and it's related to / with VS while tryiing to compile a version of DC++ so it's not specific to DC++ but truly programming question.
Peace!

neo_born
Posts: 9
Joined: 2003-01-27 12:21

Post by neo_born » 2004-09-05 21:20

I figured it out, when trying to install the STLPort it was using the wrong makefile. It was building vc7 instead of vc71, so I deleted vc7.mak and then renamed vc71.mak to makefile and it worked fine. I have it built now. Thanks for um any help anyone felt they gave.
Peace!

Locked