Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: Mars on August 20, 2006, 08:25:40 pm

Title: Stupid mistake... or compile error?
Post by: Mars on August 20, 2006, 08:25:40 pm
I'm trying to compile FS2_open in Ubuntu, which I've done before without a problem, but now, when I get to "sudo make" I get this error

Code: [Select]
        then mv -f ".deps/missionparse.Tpo" ".deps/missionparse.Po"; else rm -f ".deps/missionparse.Tpo"; exit 1; fi
mission/missionparse.cpp: In function ‘int parse_object(mission*, int, p_object*)’:
mission/missionparse.cpp:3405: warning: operation on ‘num_alts’ may be undefined
mission/missionparse.cpp:3764: error: expected `)' before ‘{’ token
make[1]: *** [missionparse.o] Error 1
make[1]: Leaving directory `/home/mars/fs2_open/code'
make: *** [all-recursive] Error 1

I'm not using any optimizations

This probably isn't enough information, but I don't know what else to say... just ask me and I'll post more.
Title: Re: Stupid mistake... or compile error?
Post by: taylor on August 20, 2006, 09:34:26 pm
Stupid coding mistake.  Line 3757 has too many "(" in it.  Just remove the "(" in front of the second "optional_string" in that line and I think that will fix it.

I'm only using the stable 3_6_9 branch now so I end up missing things like this.  The funny part is that Goober made this change to both the stable and unstable branches, the stable branch has the correct line, the unstable branch has the broken one.  We'll be sure and make fun of him for that. ;)
Title: Re: Stupid mistake... or compile error?
Post by: Goober5000 on August 20, 2006, 10:45:37 pm
I just wanted to keep the unstable branch unstable. :nervous: