gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > #include?

#2143 - pollier - Thu Jan 30, 2003 2:27 am

I'm trying to use GBAcc, and it's pretty good, except that I get a 'undefined or invalid # directive' whenever I try to use #include. Even if the file's correctly typed and in the same directory it doesn't show up. Is this a new feature of GCC 3, or is something horribly, horribly wrong?

Thanks.
_________________
(Works for me!)

#2167 - Touchstone - Thu Jan 30, 2003 12:33 pm

Something is not right. :) Does this occur when doing system or user includes? Not that it should matter. Are you using forward slash or backslash? I've had problems when using backslash in my include directives but then I'd get bizarre errors throughout the code, not 'invalid # directive'. I assume you are trying to compile a .c file with the C compiler, not 'as' or anything. :)
_________________
You can't beat our meat