can't compile

  • egezort
    11th Nov 2011 Member 0 Permalink
    when I finish coding it does not compile
  • tommig
    11th Nov 2011 Member 0 Permalink

    egezort:

    when I finish coding it does not compile

    Ok, that's very descriptive</ sarcasm>
    Are you getting an error, or does it just refuse to compile?
  • egezort
    11th Nov 2011 Member 0 Permalink
    @tommig (View Post)
    I don't know I got a fatal error when I tried to code first time (it is my second coding adventure now)
  • tommig
    11th Nov 2011 Member 0 Permalink
    @egezort (View Post)
    What is this fatal error? What are you trying to do, add an element? Compile a clean source etc.
    Take me through what you have done so far, and what the error is.

    (980 posts! :-D)
  • egezort
    11th Nov 2011 Member 0 Permalink
    @tommig (View Post)
    We don't have it right now :'( I just thought it's gonna happen again
  • Xenocide
    11th Nov 2011 Former Staff 0 Permalink
    "Fatal Error" just means it can't compile for whatever reason. This is an example of some output you may see.


    src/elements/xeno-xeno.c: In function 'update_XENO':
    src/elements/xeno-xeno.c:20: error: expected ')' before '{' token
    src/elements/xeno-xeno.c:33: error: expected expression before '}' token



    Blue Bold is the file with the error, red underline is the line numbers you need to look at. For this one I just removed a ) at the end of an if statement. Putting it back solves both problems.

    If you give us the full error you get and the file on pastebin we can look at it for you.
  • devast8a
    11th Nov 2011 Former Staff 0 Permalink
    Only worry about errors too, not warnings.