Author Topic: Stupid mistake... or compile error?  (Read 4370 times)

0 Members and 1 Guest are viewing this topic.

Offline Mars

  • I have no originality
  • 211
  • Attempting unreasonable levels of reasonable
Stupid mistake... or compile error?
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.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Stupid mistake... or compile error?
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. ;)

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: Stupid mistake... or compile error?
I just wanted to keep the unstable branch unstable. :nervous: