HomeForumsWhat's newResources 
 
 
There is some error when compiling...
Daniel Eriksson - Jan 16, 2002
 Daniel Eriksson Jan 16, 2002
I tried to compile a game that i have made, but it says:

main.c:20: Syntax error before ìf`

make.exe : *** [main.o] Error 1

The code at 20 is this:

if (Smpc_Peripheral[0].data & PER_DGT_TC == 0)

what is the error? Please help.

 ExCyber Jan 16, 2002
It's probably on the line before the if; make sure you have semicolons and closing parens/brackets in the right places.