XCode C++ missing sperm()

前端 未结 3 2188
谎友^
谎友^ 2021-02-20 07:56

I\'m using C++ and XCode to create a cmd line app to save file permissions, however I can\'t get the sperm() method to be identified, the error is

\'Use

3条回答
  •  渐次进展
    2021-02-20 08:12

    I ran into this a couple years ago. I don't feel like tiptoeing my way through Google with that particular search term at the moment, but if I remember correctly, the answer is that sperm() is a non-standard system function available on Solaris. But since it's not part of the unix standard, you won't find it on OS X.

提交回复
热议问题