[an error occurred while processing this directive]
Node:Objective C,
Next:DJGPP-specific,
Previous:Which language,
Up:Compiling
Q: How do I tell gcc my .cc file is to be compiled as Objective-C
source?
Q: I compile an Objective-C program, but get unresolved symbols.
Q: I can't compile the Objective-C test program which came with DJGPP.
A: Give your sources the .m
extension, or use
-x objective-c
switch to GCC, so it will know you mean
to compile with Objective C.