Re: embedded python on mac - linking problem

2010-01-07 Thread Krzysztof Kobus
Hi, I have been able to solve the problem finally: Initially I was trying (wrongly) to link distutils-made module with my application and that has failed. Solution was to (instead of linking the module) compile the source files making up the module and link corresponding objects as any other s

Re: embedded python on mac - linking problem

2010-01-06 Thread Krzysztof Kobus
Hi, >The missing symbol looks like a C++-symbol - but Python is C. Do you maybe >miss the > extern "C" > > declaration. I have not specified extern "C" as I assume it is a part of PyMODINIT_FUNC define. At least documentation says so: "Note that PyMODINIT_FUNC declares the function as PyObjec

Re: embedded python on mac - linking problem

2010-01-06 Thread Krzysztof Kobus
src/python/modules/build/lib.macosx-10.3-i386-3.1/j3k.so, > file is not of required architecture > > Undefined symbols: > > "_PyInit_j3k", referenced from: > > _PyInit_j3k$non_lazy_ptr in KkPython.o > > ld: symbol(s) not found > > collect2: ld returned 1 exit status > > make: *** [../../bin/render.app/Contents/MacOS/render] Error 1 > > > > > > I appreciate any hints, > > > > best greetings, > > > > Krzysztof Kobus > > -- http://mail.python.org/mailman/listinfo/python-list

[no subject]

2010-01-06 Thread Krzysztof Kobus
Mach-O bundle i386 I am not actually sure what's the difference between "bundle" and "dynamically linked shared library" on mac and if they can be linked together? Perhaps I should configure distutils on mac somehow specially to make the module ready for embedding? T

embedded python on mac - linking problem

2010-01-05 Thread Krzysztof Kobus
returned 1 exit status make: *** [../../bin/render.app/Contents/MacOS/render] Error 1 I appreciate any hints, best greetings, Krzysztof Kobus -- http://mail.python.org/mailman/listinfo/python-list