Server Help

Bot Questions - Compiling

Zip - Tue Aug 31, 2004 2:55 am
Post subject: Compiling
Firstly I have programming several languages, my strongest being php. So when in comes to compiling C++ im a tad bit lost. I have used Dev-C++ and of course the #pragmra not supported any more was getting me. Although I already saw a thread discussing that and that is not my issue. Basicaly I tried the beta 2005 for VSC++ and I got literaly thousands of errors when I tried to compile. So now I have Microsoft Visual C++ Toolkit 2003. Can any one (assuming its possible) how to compile, for example the tutorial dll (the one with Spawn.h, command.cpp, and spawn.ccp) using the toolkit?

Any help or redirection to a thread I missed that already has my answer would be very helpful, TY.

-ZiP
50% Packetloss - Tue Aug 31, 2004 3:43 am
Post subject:
php is a scripting language.
http://forums.minegoboom.com/viewtopic.php?t=2613
Cyan~Fire - Tue Aug 31, 2004 6:42 am
Post subject:
Surround the #pragma statement with an #ifdef like this in all the offending files:
Code: Show/Hide
#ifdef _MSC_VER //only include for MSVC++
#pragma once
#endif

Zip - Tue Aug 31, 2004 11:37 am
Post subject:
Thank you very much... I think,
and yes I know php is scripting language. I was just saying that most languageds and SCRIPTING languages are simarlar

Edit----
Ty very much, Compiling has always been holding me back, I got the default spawn to compile and my endless hours of trying to get diff compilers to work is finaly over. biggrin.gif My best regards!
Mr Ekted - Tue Aug 31, 2004 3:30 pm
Post subject:
You can't necessarily just "comment out" #pragma just because the compiler doesn't support it. Specifically, #pragma pack(). This controls the packing of structures and must be used to get the proper alignment of packet definitions. If the compiler has no other way to indicate packing, then you will be unable to get it to work at all.
Cyan~Fire - Tue Aug 31, 2004 5:13 pm
Post subject:
But #pragma once is unnecessary in compiling MERV plugins. It is redundant with #ifndef WHATEVER_H, you know the sytem.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group