Stupid errors

  • ubuntupokemoninc
    28th Apr 2011 Member 0 Permalink
    I am updating my source code, and i have to do it manually, (just don't ask why) I'm on a different computer than my home computer, its still ubuntu, its ubuntu 9.04 64 bit, And i have all the crap for compiling installed, so i figure just as a test i would compile an origianal source, the only error i get is

    src/main.c:194: error: invalid initializer

    not sure why

  • rrusciguy
    28th Apr 2011 Member 0 Permalink
    well, in the 40.4 src, that line is "#ifdef WIN32", so I think that right there explains it :P, but seriously, idk. May have to do with the fact it is 64 bit, i dunno. Which version is your source? I'll try compiling it on my pc (ubuntu 10.10 32 bit)
  • edza101
    28th Apr 2011 Member 0 Permalink
    Yeah do what he said. :0 I'm such a noob
  • rrusciguy
    28th Apr 2011 Member 0 Permalink
    @edza101 (View Post)
    now don't start trying to butter me up! :P
  • edza101
    28th Apr 2011 Member 0 Permalink
    Ha ha ha XDXDXD HAHAHAHA!!!!
    XDXDXD
  • Pilihp64
    28th Apr 2011 Developer 0 Permalink
    @ubuntupokemoninc (View Post)
    this was fixed, it was a small error, update your source.
  • ubuntupokemoninc
    28th Apr 2011 Member 0 Permalink
    well, i got that problem solved, compile perfectly, Until i started to combine the two >.<!!!!<br />
    src/graphics.c:36: error: expected ‘;’, ‘,’ or ‘)’ before ‘else’
    src/graphics.c: In function ‘draw_parts’:
    src/graphics.c:1642: error: expected ‘}’ before ‘else’

    Were would this syntax error be located?
  • Diissaster
    28th Apr 2011 Member 0 Permalink
    @ubuntupokemoninc (View Post)
    Where do you think?
    Src/Graphics.c at line 36
  • me4502
    28th Apr 2011 Member 0 Permalink
    @Diissaster (View Post)
    i think there may be 2 errors

    one at line 36 but a second in the void draw_parts... you must of added something just before line 1642 and forgot a }
  • ubuntupokemoninc
    28th Apr 2011 Member 0 Permalink
    I figured it out, it was just copy past gone wrong, for some reason it scattered bits of the laser code around graphics.c