"Undefined symbols:" Error in Example
Hello,
I'm just getting started with pybindgen on Mac running Snow Leopard.
I've placed pybindgen in the site-packages dir and I'm attempting to run first-example, downloaded from http://
As per the instructions here: http://
gcc -fPIC -c -o my-module.o my-module.c
gcc -shared -o libmymodule.so my-module.o
PYTHONPATH=
gcc -fPIC -I/usr/
gcc -shared -o MyModule.so -L. -lmymodule my-module-binding.o
Undefined symbols:
"_Py_
_initMyModule in my-module-binding.o
"__Py_
_
_
_
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [MyModule.so] Error 1
It appears that both binding files ( .o, .c ) and libmymodule.so are generated. My question is, what are these Undefined Symbols? Is this going to affect anything or can these errors be ignored?
Thanks,
~Jeremy
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- PyBindGen Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask makemachine for more information if necessary.