error in compilation of new code

  • triclops200
    8th Dec 2010 Former Staff 0 Permalink
    I keep getting this error:

    Error 1 error C2143: syntax error : missing ';' before 'type' C:\Users\Bryan\Desktop\Powder beta Source\The-Powder-Toy.git\powder.c 905 1 Powder Git
    and the code is how it is in default, the lines before and after this are
    GRAV_G2 = 30;
    GRAV_B2 = 0;
    <error> ---> for(int q = 0;q <= GRAV;q++)
    {
    if(GRAV_R >0 && GRAV_G==0)
    {
  • Pilihp64
    8th Dec 2010 Developer 0 Permalink
    pilojo was having this same problem, i have no idea why visual studio will not compile it...
  • pilojo
    8th Dec 2010 Member 0 Permalink
    Yeah. Same error. I just dual booted into linux... compiles just fine in linux.

    Edit: Speaking of compiling in linux, Cracker, have you figured out what i need to do to compile for windows in linux yet?
  • zc00gii
    8th Dec 2010 Banned 0 Permalink
    This post is hidden because the user is banned
  • pilojo
    8th Dec 2010 Member 0 Permalink
    Visual Studio... on windows... terminal in linux...
  • MiXih
    8th Dec 2010 Member 0 Permalink
    try:

    int g;
    for(q = 0;q <= GRAV;q++)
    {
    if(GRAV_R >0 && GRAV_G==0)
    {

    (i know, same assembly, but i do it in my vsc++ and worked)
  • pilojo
    8th Dec 2010 Member 0 Permalink
    wikku9
    It's going to happen in about 8 different elements wikku... no point.
  • triclops200
    8th Dec 2010 Former Staff 0 Permalink
    wikku9
    yeah, i tried that, too much editing.