Author Topic: weird compile error  (Read 1836 times)

0 Members and 1 Guest are viewing this topic.

Offline FreeTerran

  • Master of the apocalypse
    Reset count: 1
  • 210
if i wanna compile the fs2 source i got a weird error :wtf:

Code: [Select]
F:\fs2-source\fs2_open\code\Ship\Ship.cpp(4998) : fatal error C1017: invalid integer constant expression

the code around the line 4998 is the following:

Code: [Select]
// AL 29-3-98: Don't want to include Shivan thrusters in the demo build
int num_thrust_anims = NUM_THRUST_ANIMS;
#ifdef DEMO // N/A FS2_DEMO
num_thrust_anims = NUM_THRUST_ANIMS - 2;
#endif

#if (MORE_SPECIES)
for ( i = 0; i < num_thrust_anims && i < (True_NumSpecies * 2); i++ ) {
#else
for ( i = 0; i < num_thrust_anims; i++ ) {
#endif
ta = &Thrust_anims[i];
ta->first_frame = bm_load_animation(Thrust_anim_names[i],  &ta->num_frames, &fps, 1);
ta->secondary = bm_load(Thrust_secondary_anim_names[i]);
ta->tertiary = bm_load(Thrust_tertiary_anim_names[i]);


line 4998 is

Code: [Select]
#if (MORE_SPECIES)

i hope someone know why what's causing this :mad:
Silva in lumine Lunae arcana est. Domos mea Silva in lumine Stellarum est.

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Change it to
Code: [Select]
#ifdef (MORE_SPECIES)and see if it works.

 

Offline FreeTerran

  • Master of the apocalypse
    Reset count: 1
  • 210
mhh doesn't seems so :nervous:

Code: [Select]
F:\fs2-source\fs2_open\code\Ship\Ship.cpp(4998) : fatal error C1016: #if[n]def expected an identifier
Silva in lumine Lunae arcana est. Domos mea Silva in lumine Stellarum est.

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Bah.  Get rid of the parentheses.
Code: [Select]
#ifdef MORE_SPECIESIf that doesn't work, then try
Code: [Select]
#if defined(MORE_SPECIES)

  

Offline FreeTerran

  • Master of the apocalypse
    Reset count: 1
  • 210
now i'd got the old error
Code: [Select]
F:\fs2-source\fs2_open\code\Ship\Ship.cpp(5022) : fatal error C1017: invalid integer constant expression

edit: woops i  tryed clean build work now, cheers goob ;)
Silva in lumine Lunae arcana est. Domos mea Silva in lumine Stellarum est.

 

Offline FreeTerran

  • Master of the apocalypse
    Reset count: 1
  • 210
grrr damnit now i get
Code: [Select]
LINK : fatal error LNK1181: cannot open input file "Dxerr8.lib"

but dx8 sdk is included :wtf:
Silva in lumine Lunae arcana est. Domos mea Silva in lumine Stellarum est.

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
1) The DX8SDK should be installed in Release mode, not Debug.

2) You need to add the DX8SDK folders to the list of include folders and library folders.

 

Offline FreeTerran

  • Master of the apocalypse
    Reset count: 1
  • 210
ok i had to reinstall it in release mode thanks again :)
Silva in lumine Lunae arcana est. Domos mea Silva in lumine Stellarum est.

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
You're welcome. :)