public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Building the python swig tutorial
@ 2021-03-27 12:58 Brad Bell
  2021-03-27 15:09 ` Hans-Bernhard Bröker
  2021-03-27 15:36 ` Marco Atzeri
  0 siblings, 2 replies; 5+ messages in thread
From: Brad Bell @ 2021-03-27 12:58 UTC (permalink / raw)
  To: cygwin

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 ?


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-03-28 15:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-27 12:58 Building the python swig tutorial Brad Bell
2021-03-27 15:09 ` Hans-Bernhard Bröker
2021-03-28 12:22   ` Brad Bell
2021-03-28 15:07     ` Marco Atzeri
2021-03-27 15:36 ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).