Py_GetPath() C API in python 3
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Fri Dec 12 20:55:03 EST 2008
En Fri, 12 Dec 2008 04:50:06 -0200, stalex <shao.tu at gmail.com> escribió:
>> I want to build a new, requires total control, python interpreter. So
>> I implement my own version of Py_GetPath(), Py_GetPrefix(),
>> Py_GetExecPrefix() and Py_GetProgramFullPath(). When compiling, I
>> always get error messages, for each API function, look like
>> followings:
>>
>> /opt/python-3.0/lib/python3.0/config/libpython3.0.a(getpath.o)(.text
>> +0x211c): In function `Py_GetPath':
>> ./Modules/getpath.c:739: multiple definition of `Py_GetPath'
>> myApp.o(.text+0x0):/home/alex/workspace/develop/src/myApp.c:11: first
>> defined here
>> /usr/bin/ld: Warning: size of symbol `Py_GetPath' changed from 126 in
>> system.o to 32 in /opt/python-3.0/lib/python3.0/config/libpython3.0.a
>> (getpath.o)
>> collect2: ld returned 1 exit status
Looks like you added your own implementation of those functions
(/home/alex/...myApp.c) but forgot to remove the original one
(Modules/getpath.c)
--
Gabriel Genellina
More information about the Python-list
mailing list