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 ?
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple