Building the python swig tutorial

Brad Bell bradbell@seanet.com
Sat Mar 27 12:58:34 GMT 2021


I am trying to build the swig tutorial on cygwin
http://www.swig.org/tutorial.html <http://www.swig.org/tutorial.html>

I changed the version of python to python3.8 (the version on my cygwin system) and that solved the 
include file error.

Now I am getting the following error during the ld command:

ld: example.o:example.c:(.text+0x54): undefined reference to `time'
example.o:example.c:(.text+0x54): relocation truncated to fit: R_X86_64_PC32 against undefined 
symbol `time'
ld: example.o:example.c:(.text+0x60): undefined reference to `ctime'
example.o:example.c:(.text+0x60): relocation truncated to fit: R_X86_64_PC32 against undefined 
symbol `ctime'

... snip ...

ld: example_wrap.o:example_wrap.c:(.rdata+0x750): undefined reference to `PyObject_GenericGetAttr'
ld: example_wrap.o:example_wrap.c:(.rdata+0x8f0): undefined reference to `PyObject_GenericGetAttr'
ld: 
example_wrap.o:example_wrap.c:(.rdata$.refptr.PyObject_GenericGetAttr[.refptr.PyObject_GenericGetAttr]+0x0): 
undefined reference to `PyObject_GenericGetAttr'


It appeard that I need to add an non-standard location to a path so that the linker can find these 
files ?

Does someone know where these files are on cygwin ?



More information about the Cygwin mailing list