Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: FreeTerran on August 18, 2004, 02:07:39 pm

Title: weird compile error
Post by: FreeTerran on August 18, 2004, 02:07:39 pm
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:
Title: weird compile error
Post by: Goober5000 on August 18, 2004, 02:11:40 pm
Change it to
Code: [Select]
#ifdef (MORE_SPECIES)and see if it works.
Title: weird compile error
Post by: FreeTerran on August 18, 2004, 02:13:17 pm
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
Title: weird compile error
Post by: Goober5000 on August 18, 2004, 02:14:44 pm
Bah.  Get rid of the parentheses.
Code: [Select]
#ifdef MORE_SPECIESIf that doesn't work, then try
Code: [Select]
#if defined(MORE_SPECIES)
Title: weird compile error
Post by: FreeTerran on August 18, 2004, 02:16:06 pm
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 ;)
Title: weird compile error
Post by: FreeTerran on August 18, 2004, 02:19:24 pm
grrr damnit now i get
Code: [Select]
LINK : fatal error LNK1181: cannot open input file "Dxerr8.lib"

but dx8 sdk is included :wtf:
Title: weird compile error
Post by: Goober5000 on August 18, 2004, 02:24:59 pm
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.
Title: weird compile error
Post by: FreeTerran on August 18, 2004, 02:31:25 pm
ok i had to reinstall it in release mode thanks again :)
Title: weird compile error
Post by: Goober5000 on August 18, 2004, 02:32:45 pm
You're welcome. :)