Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Compiling

 
Post new topic   Reply to topic Printable version
 View previous topic  Bot sysop Post :: Post Keeping a log of player stats  View next topic  
Author Message
Zip
Newbie


Joined: Aug 31 2004
Posts: 9
Offline

PostPosted: Tue Aug 31, 2004 2:55 am    Post subject: Compiling Reply to topic Reply with quote

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
Back to top
View users profile Send private message Add User to Ignore List
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Tue Aug 31, 2004 3:43 am    Post subject: Reply to topic Reply with quote

php is a scripting language.
http://forums.minegoboom.com/viewtopic.php?t=2613
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Tue Aug 31, 2004 6:42 am    Post subject: Reply to topic Reply with quote

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

_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Zip
Newbie


Joined: Aug 31 2004
Posts: 9
Offline

PostPosted: Tue Aug 31, 2004 11:37 am    Post subject: Reply to topic Reply with quote

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!
Back to top
View users profile Send private message Add User to Ignore List
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Tue Aug 31, 2004 3:30 pm    Post subject: Reply to topic Reply with quote

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.
_________________
4,691 irradiated haggis!
Back to top
View users profile Send private message Add User to Ignore List
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Tue Aug 31, 2004 5:13 pm    Post subject: Reply to topic Reply with quote

But #pragma once is unnecessary in compiling MERV plugins. It is redundant with #ifndef WHATEVER_H, you know the sytem.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 440 page(s) served in previous 5 minutes.

phpBB Created this page in 0.636913 seconds : 30 queries executed (80.4%): GZIP compression disabled