Hi,
I am trying to compile an objective c program from a terminal with this line:
gcc main.m -o Prog1 -l objc
and also this one
gcc-4.2 main.m -o Prog1 -l objc
both give this error
gcc-4.2: error trying to exec 'cc1obj': execvp: No such file or directory
I have both gcc and gcc-4.2 installed and have run apt-get install build-essential but still have the same error.
Can anyone help me please?
Thanks
I am trying to compile an objective c program from a terminal with this line:
gcc main.m -o Prog1 -l objc
and also this one
gcc-4.2 main.m -o Prog1 -l objc
both give this error
gcc-4.2: error trying to exec 'cc1obj': execvp: No such file or directory
I have both gcc and gcc-4.2 installed and have run apt-get install build-essential but still have the same error.
Can anyone help me please?
Thanks
Comment