From: Brad Bell <bradbell@seanet.com>
To: cygwin@cygwin.com
Subject: Building the python swig tutorial
Date: Sat, 27 Mar 2021 05:58:34 -0700 [thread overview]
Message-ID: <fe7572cd-0da9-ceb4-8190-510b09ce6808@seanet.com> (raw)
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 ?
next reply other threads:[~2021-03-27 12:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-27 12:58 Brad Bell [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fe7572cd-0da9-ceb4-8190-510b09ce6808@seanet.com \
--to=bradbell@seanet.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).