I\'m trying to get the version of Mac OS X programmatically in C. After searching for a while I tried this code:
#include
Did you pass the appropriate framework to GCC in order to enable CoreServices?
CoreServices
% gcc -framework CoreServices -o getos main.c