Skip to main content
GameDev.net gamedev.net
🔒 Locked

compile problem

Started by original vesoljc May 25, 2003 at 1:20 PM 3 replies 300+ views
Original Post
original vesoljc
original vesoljc
this is the first something like this happend... even if i comment the line out, it still gives me error on compile... so the error must be elsewhere... but i cant find it.. here''s the link to the project... http://vesoljc.tripod.com/axpBuild10.zip PS: comments on coding are also appriciated
Abnormal behavior of abnormal brain makes me normal...
Mastaba
Mastaba
In the file axpTypes.hpp, you need to move the compiler specific portion to just before the namespace.

  
///////////////////////
// COMPILER SPECIFIC //
///////////////////////

// Microsoft compiler
#if _MSC_VER
#include "axpTypesMSVC.hpp"

// GNU C/C++ compiler
#elif __GNUC__
#include "axpTypesGNUC.hpp"

#endif

namespace axp
...



[edited by - Mastaba on May 25, 2003 3:31:37 PM]
BriTeg
BriTeg
Do you mean the following error?

"error C2146: syntax error : missing '';'' before identifier ''axpFlag8''"

If so, at the top of the file, take the compiler-specific includes out of the namespace, ie. the following:


  
namespace axp
{

///////////////////////

// COMPILER SPECIFIC //

///////////////////////


// Microsoft compiler

#if _MSC_VER
#include "axpTypesMSVC.hpp"


// GNU C/C++ compiler

#elif __GNUC__
#include "axpTypesGNUC.hpp"
#endif
...


should be:


  
///////////////////////

// COMPILER SPECIFIC //

///////////////////////


// Microsoft compiler

#if _MSC_VER
#include "axpTypesMSVC.hpp"


// GNU C/C++ compiler

#elif __GNUC__
#include "axpTypesGNUC.hpp"
#endif

namespace axp
{
....
Brianmiserere nostri <font color=#BC
original vesoljc
original vesoljc
@ mastaba & briteg
next time we see each other, u get a beer...
tnx
Abnormal behavior of abnormal brain makes me normal...

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.