View Full Version : Compiler error

09-28-2005, 10:56 PM
Hello everybody,

When I compile my shader program, I get this compiler error I cannot understand:

(0)error C0000: syntax error, unexpected $end at token "<invalid atom>"
(1)error C0501: type name expected at token "<invalid atom>"

Can anybody give me a clue for the reason of this error?

Thank you.

09-28-2005, 11:06 PM
Sounds like your input string to the glShaderSource function has ended before the compiler could finish parsing.
Check the input string and length.
Check if you have a NULL character where it doesn't belong.
Try a glGetShaderSourceARB to see if it returns the same as what you've wanted.
If you loaded the shader from a file, check the loader (read binary?).

09-29-2005, 12:50 AM
Thank you Relic... my mistake...I put a // comment beside a line of code which was not terminate with with a newline character! :eek: