KpyM Telnet/SSH Server - Forum
compiling from source |
HML |
compiling from source |
Apr 11 2006 19:25 |
|
How do you compile from source?
What do you need to compile from source?
I tried to just gcc or g++ the cpp files and it returned tons of errors.
I'm using the source of the latest version - 1.13
|
Kroum Grigorov |
|
Apr 12 2006 07:10 |
|
I use Visual C++ toolkit 2003 together with Microsoft® Platform SDK to compile binaries, these both are free to download from MS website. The project file is created with VC++ Express IDE, that is also available to download from MS website.
The .hxx and .h files are all included in the three main .cpp files term.cpp, term-ssh.cpp and telnetd.cpp. To compile the binaries manually you have to:
1) adjust include folder options
2) compile the three object files term.obj, term-ssh.obj and telnetd.obj
3) link the object files with cryptllib .lib file (cl32.lib, you can find it in the source directory)
4) at runtime the binaries will need cl32.dll for cryptlib functions( find it also in the source directory )
Kroum
|
HML |
|
Apr 12 2006 18:57 |
|
Thanks a lot!!
if anyone needs...
VC++7 to VC++6 project conveter
l0c41://www.arstdesign.com/articles/prjconverter.html
Microsoft Visual C++ Toolkit 2003
l0c41://msdn.microsoft.com/visualc/vctoolkit2003/
Windows® Server 2003 SP1 Platform SDK
l0c41://www.microsoft.com/downloads/details.aspx?FamilyId=A55B6B43-E24F-4EA3-A93E-40C0EC4F68E5&displaylang=en
|
HML |
|
Apr 13 2006 17:27 |
|
Actually, I don't recommend using the project converter. It gave me trouble and have to correct quite a lot of environment issues.
Use Visual C++ 2005 Express instead
l0c41://msdn.microsoft.com/vstudio/express/visualc/
|
Kroum Grigorov |
|
Apr 13 2006 18:01 |
|
Just one comment:
The libraries that come with Visual C++ 2005 Express are little buggy (at least they were few months ago ), you can check my [url=l0c41://www.kpym.com/blog/2005/12/freeide-using-visual-c-2005-express.html]blog[/url] on stringstream memory leak bug.
I can recommend to use it as IDE only, and to parameter it to use Visual C++ Toolkit 2003 compiler and libraries.
|
Sander |
VC2003 toolkit no longer available? |
Jul 19 2006 18:36 |
|
Hello,
I just tried to download the 2003 toolkit but it appears to no longer be available, forcing you to download 2005 express.
Sander
|
Kroum Grigorov |
|
Jul 20 2006 06:58 |
|
Yes, it seems 2003 toolkit is not available anymore.
Unfortunately I can do nothing to help here, you will have to either use 2005 express (hoping MS fixed most of its bugs) or find 2003 toolkit from somewhere else or try using another compiler.
There used to be free borland c++ compiler that I used for building previous KTS versions and it worked well but you are on your own using it as it might require some minor changes in code.
Krum
|
© 2007 - 2008 Kroum Grigorov