gcc编译objectiveC

太叔何平
2023-12-01
#!/bin/sh

if [ $# -ne 1 ]; then
echo "Usage: $0 name"
exit 1
fi

gcc $1.m -o $1 \
-fconstant-string-class=NSConstantString \
-lobjc \
-lgnustep-base

exit 0


 类似资料: