I just updated my driver from 84.21 to 91.31 and when my application tries to compile a vertex shader (code below) I receive the errors:
<7> C0000 syntax error: unexpected $undefined at token “<undefined>”
<7> C0501 error: …
line 7 is the last line with the curly brace on it, this code works fine with driver 84.21. Did the compiler change between these two drivers or something. Any help would be appreciated. Until then though I can just use the older driver.
How do you read the file? Make sure you have no empty string at the end of the file.
I once had the same problem. My loading code uses fgets, and this reads until the next
or EOF. This means with a properly formatted text file, it reads the last line, and on the next call it immediately reads the EOF. I didn’t catch this at first, and this resulted in exactly this error message.