X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C3A99385800F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=seanet.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=bradbell AT seanet DOT com To: cygwin AT cygwin DOT com From: Brad Bell Subject: Building the python swig tutorial Message-ID: Date: Sat, 27 Mar 2021 05:58:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 Content-Language: en-US X-atmessage-kappa1-MailScanner-Information: Please contact support for more information X-atmessage-kappa1-MailScanner-ID: 5C62C14BFE5.AF392 X-atmessage-kappa1-MailScanner: Found to be clean X-atmessage-kappa1-MailScanner-From: bradbell AT seanet DOT com X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, URIBL_SBL, URIBL_SBL_A autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Cygwin" I am trying to build the swig tutorial on cygwin 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