delorie.com is funded by banner ads.
  www.delorie.com/djgpp/v2faq/faq055.html   search  

| Previous | Next | Up | Top |

8.5 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.

Objective-C was broken in GCC 2.6.0. The problem manifests itself by unresolved modules. If you use that version, you'll have to upgrade to version 2.6.3 or higher.


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright ⌐ 1998   by Eli Zaretskii     Updated Sep 1998  

Powered by Apache!

You can help support this site by visiting the advertisers that sponsor it! (only once each, though)