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
-
if i wanna compile the fs2 source i got a weird error :wtf:
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:
// 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
#if (MORE_SPECIES)
i hope someone know why what's causing this :mad:
-
Change it to
#ifdef (MORE_SPECIES)
and see if it works.
-
mhh doesn't seems so :nervous:
F:\fs2-source\fs2_open\code\Ship\Ship.cpp(4998) : fatal error C1016: #if[n]def expected an identifier
-
Bah. Get rid of the parentheses.
#ifdef MORE_SPECIES
If that doesn't work, then try#if defined(MORE_SPECIES)
-
now i'd got the old error
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 ;)
-
grrr damnit now i get
LINK : fatal error LNK1181: cannot open input file "Dxerr8.lib"
but dx8 sdk is included :wtf:
-
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.
-
ok i had to reinstall it in release mode thanks again :)
-
You're welcome. :)