Compiling DC++ Problems - YAPT
Moderator: Moderators
Compiling DC++ Problems - YAPT
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.
------ 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!
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
-
- Forum Moderator
- Posts: 366
- Joined: 2004-03-06 02:46
-
- Forum Moderator
- Posts: 1420
- Joined: 2003-04-22 14:37
Which one? The namespace one or the static lib one?neo_born wrote:I still get the same error
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.
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'
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!
-
- Posts: 184
- Joined: 2003-05-26 11:29
- Location: UK
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?
*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!
-
- Posts: 184
- Joined: 2003-05-26 11:29
- Location: UK
No, you only have to build it like that for Reverse Connect.neo_born wrote:1. With the DCPlusPlus STLPort do I still have to build it like in the directions above?
Yes, if you ever get that far.neo_born wrote:2. When I click on build solution at the end of compiling will I have an executable i.e. DCPlusPlus.exe?
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.
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
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++.
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Because it is.neo_born wrote: Why do you think that stlport is the problem? What gives you this impression?
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.
I believe you're actually getting it.neo_born wrote:Anyone know where I can go to find competent help?
-
- Forum Moderator
- Posts: 366
- Joined: 2004-03-06 02:46
Wouldn't it make more sense to ask at the RevConnect forums?