Relevant Parts:
gcc -c -Wno-import List.m gcc -o prog -Wno-import List.o main.o -lobjc
., make sure that the libraries and Objective-C header files (objc / Object.h) were installed when creating gcc.
Note that when linking Objective-C to gcc, you need to specify the Objective-C library with the -lobjc switch.
See the link for more details.
Additional link with a possible solution to the problem with the missing compiler:
Try installing gobjc ++ or gobjc
sudo apt-get install gobjc++
source share