1

Undefined symbols for architecture i386:

"_PyInt_AsLong", referenced from: _main in main.o

"_PyInt_FromLong", referenced from: _main in main.o

"_PyString_FromString", referenced from: _main in main.o

ld: symbol(s) not found for architecture i386 clang: error:

linker command failed with exit code 1 (use -v to see invocation)

2

1 Answer 1

1

Replacing

  1. PyUnicode_AsUTF8 or PyUnicode_FromString for _PyString_FromString
  2. PyLong_AsLong for _PyInt_AsLong
  3. PyLong_FromLong for _PyInt_FromLong

solved my problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.