c++
1#include <Python/Python.h> 2#include <iostream> 3 4int main(int argc, char *argv[]) 5{ 6 Py_Initialize(); 7}
上記のコードをxcodeでビルドした結果、以下のエラーが出ました。
Undefined symbols for architecture x86_64:
"_Py_Initialize", referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
このようにオブジェクトのリンクに失敗します。
http://naskin-diary.hatenablog.com/entry/20100226/1267187550
このURLで解決法は乗ってると思うのですが、xcodeでどうやるのかがわかりません。
ご教授お願いします。
各バージョン
python2.7.3
xcode9.1
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/11/06 07:39
2017/11/06 07:52
2017/11/06 07:56
2017/11/06 08:02
2017/11/06 08:05
2017/11/06 08:35