sudo apt install gnustep gnustep-devel clang plocate libxml2-dev libxslt1-dev
'
You may need to run sudo updatedb.plocate
, depending on your environment.
Then run locate objc.h
.
Copy the path, change the command accordingly and run (replace <path>
with the actual path):
sudo ln -s <path> /usr/local/include/objc
For example
sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/14/include/objc /usr/local/include/objc
clang `gnustep-config --objc-flags` -o main main.m `gnustep-config --base-libs` -lm
Ubuntu 24.04
Raspberry Pi 5