[an error occurred while processing this directive] Node:Objective C, Next:, Previous:Which language, Up:Compiling

8.6 Problems with Objective C

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.


[an error occurred while processing this directive]