Compile C lib for iPhone

后端 未结 2 1895
盖世英雄少女心
盖世英雄少女心 2020-12-18 08:37

I\'m trying to compile ZeroMQ C binding in order to be able to use it on iPhone, here is my configure options:

./configure --host=arm-apple-darwin --enable-st

2条回答
  •  春和景丽
    2020-12-18 08:54

    Given the warning message from ld, my guess is you're not compiling the library for the correct platform. And given you're using configure, my guess is you're trying to compile the library outside of Xcode and then bring it into Xcode later to link it in.

    Perhaps you could try running configure to set up your headers, but do the actual compilation step inside Xcode?

    There are lots of related questions here on SO about compiling third-party (external) C or C++ libraries for use in iPhone projects.

    Creating static library for iPhone

    TiMidity: need help compiling this library for the iPhone

提交回复
热议问题