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 Diez B. Roggisch
Krzysztof Kobus schrieb: Hi, I have a problem with linking python module with my application on mac in order to make the module available in "embedded python". My python module is contained in j3kmodule.cxx file and module initialization function is exported in j3kmodule.h j3kmodule.h:

Re: embedded python on mac - linking problem

2010-01-06 Thread Krzysztof Kobus
Hi, > > Well, it seems that one of your files is a different architecture than > > the others. Based on the location, I'd say it's i386 while the rest of > > it would be PowerPC. You can cross-compile but you can't link an i386 > > library to a PowerPC library. Thank you for the hint. I have ch

Re: embedded python on mac - linking problem

2010-01-05 Thread Benjamin Kaplan
On Tue, Jan 5, 2010 at 7:33 AM, Krzysztof Kobus wrote: > Hi, > > I have a problem with linking python module with my application on mac in > order to make the module available in "embedded python". > > My python module is contained in  j3kmodule.cxx file and module > initialization function is e

embedded python on mac - linking problem

2010-01-05 Thread Krzysztof Kobus
Hi, I have a problem with linking python module with my application on mac in order to make the module available in "embedded python". My python module is contained in j3kmodule.cxx file and module initialization function is exported in j3kmodule.h j3kmodule.h: PyMODINIT_FUNC PyI

C\C++ Python embedding linking problem

2008-04-20 Thread DevEng
Hi all, I am new to Python and trying to embed it into a c/c++ application. I started with examples from the documentation pages and go to the Pure Embedding example (http://docs.python.org/ext/pure-embedding.html). I can compile and run this example on wxDevC++ with a mingwin compiler. However wh

linking problem

2005-07-08 Thread J
Hi everyone, I thought that I would compile the python debug library and step through it to figure out where things fail. So, I downloaded python 2.4.1 and compile the python24_d.lib using the dsp files in PCBuild. It compiles fine whitout a problem, but when I link agains it i get a unresolved ex

Re: VC++ linking problem

2005-07-08 Thread Miki Tebeka
Hello J, > I will put a hold on compiling the latest version until I really have to. > I will probably switch to VC 7 before that. You can use the (free) MinGW compiler (www.mingw.org). It can build extension that link to Python 2.4. Just use distutils setup.py and run 'python setup.py build_ext

Re: VC++ linking problem

2005-07-07 Thread J
cs App and I came > > across this linking problem. > > > > > > SO.lib(ScnGlobal.obj) : error LNK2001: unresolved external symbol > > __imp__Py_InitModule4TraceRefs > > SO.lib(ScnNode.obj) : error LNK2001: unresolved external symbol > > __imp___Py_RefTota

Re: VC++ linking problem

2005-07-07 Thread Wolfgang Langner
Hello Jochen, > I started embedding python into a 3D graphics App and I came > across this linking problem. > > > SO.lib(ScnGlobal.obj) : error LNK2001: unresolved external symbol > __imp__Py_InitModule4TraceRefs > SO.lib(ScnNode.obj) : error LNK2001: unres

Re: VC++ linking problem

2005-07-07 Thread Miki Tebeka
Hello Jochen, > I started embedding python into a 3D graphics App and I came > across this linking problem. > > > SO.lib(ScnGlobal.obj) : error LNK2001: unresolved external symbol > __imp__Py_InitModule4TraceRefs > SO.lib(ScnNode.obj) : error LNK2001: unres

Re: VC++ linking problem

2005-07-07 Thread Gerhard Haering
On Thu, Jul 07, 2005 at 04:52:11AM -0700, J wrote: > Hi everyone, > > I started embedding python into a 3D graphics App and I came > across this linking problem. > > > SO.lib(ScnGlobal.obj) : error LNK2001: unresolved external symbol > __imp__Py_InitModule4TraceR

VC++ linking problem

2005-07-07 Thread J
Hi everyone, I started embedding python into a 3D graphics App and I came across this linking problem. SO.lib(ScnGlobal.obj) : error LNK2001: unresolved external symbol __imp__Py_InitModule4TraceRefs SO.lib(ScnNode.obj) : error LNK2001: unresolved external symbol __imp___Py_RefTotal SO.lib

dynamical linking problem

2004-11-30 Thread wab104
I compiled Python on one Linux box and copied it to another Linux box. This causes an import problem: >>> import urllib Traceback (most recent call last): File "", line 1, in ? File "/edl3/wb104/analysis/python2.2/lib/python2.2/urllib.py", line 26, in ? import socket File "/edl3/wb104/a