This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

help with objective c please!


Hello, we have gcc version 3.2 installed and have used it for C++ with no problems. However, recently I've tried to compile Objective C programs, but I can't get anything to work. I did pretty much the standard install of the compiler. The error I got was:
gcc -lobjc main.m printer.m -o test
gcc: printer.m: No such file or directory
main.m:3:2: warning: #import is obsolete, use an #ifndef wrapper in the header file
In file included from main.m:3:
Printer.h:1:25: objc/Object.h: No such file or directory
In file included from main.m:3:
Printer.h:7: cannot find interface declaration for `Object', superclass of `Printer'


Any help would be appreciated. Thanks!

Jeff

--
------------------------------------------------
Jeffrey C. Keller
 System Administrator's Group
 Department of Computer Science
 Rochester Institute of Technology
 Rochester, New York   14623-5608

 Phone: 585-475-7969    FAX: 585-475-7100
 jck7765 at cs dot rit dot edu     www.cs.rit.edu/~jck7765
------------------------------------------------



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]