Getting the OS version in Mac OS X using standard C

前端 未结 3 1604
遇见更好的自我
遇见更好的自我 2020-12-18 20:03

I\'m trying to get the version of Mac OS X programmatically in C. After searching for a while I tried this code:

#include 

        
3条回答
  •  萌比男神i
    2020-12-18 20:51

    Did you pass the appropriate framework to GCC in order to enable CoreServices?

    % gcc -framework CoreServices -o getos main.c
    

提交回复
热议问题