PDA

View Full Version : Objective-C



MattT
07-27-2003, 06:32 AM
I am using Objective-C for the first time. When I try to compile I get this:
$ gcc main.m
gcc: installation problem, cannot exec `cc1obj': No such file or directory
Does this mean Knoppix doesn't have Objective-C or it is not installed right? How can I compile Objective-C code?

A. Jorge Garcia
07-27-2003, 03:42 PM
I don't use objective c. However I use GNU's C++ (g++). When I compile a program on the command line it goes like this:

g++ -o hello hello.cc mystring.cpp

Maybe there's more info on the MAN pages?

Good Luck,

MattT
07-27-2003, 09:22 PM
It works now. Objective-C is not part of gcc-base. You have to install gobjc from debian.

A. Jorge Garcia
07-27-2003, 10:05 PM
Oh, great, glad to hear it!

Regards,