[From nobody Sat Jun 9 06:06:33 2007 Date: Fri, 08 Jun 2007 20:50:00 -0700 From: David Goldsmith <David.L.Goldsmith@noaa.gov> Subject: Re: [Pyrex] [Mac Inter Core Duo OS 10.4.9 ] compiler complains about pyrex created .h In-reply-to: <466A10CC.20409@telus.net> To: Lenard Lindstrom <len-l@telus.net> Message-id: <466A2368.8000203@noaa.gov> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT User-Agent: Thunderbird 1.5.0.12 (Macintosh/20070509) References: <C28B28A9.1BE90%bob@norcalttora.com> <4665DEA6.8040000@noaa.gov> <4665E5F6.4060401@lexicon.net> <4665F30E.4040101@noaa.gov> <D2EF3939-65A4-45FE-A08C-41D6F98FD5A3@math.washington.edu> <4666C392.1050804@noaa.gov> <1181143418.3560.17.camel@localhost> <4666D81F.4020207@noaa.gov> <1181147825.3560.42.camel@localhost> <4666E665.9020005@noaa.gov> <1181150414.3560.49.camel@localhost> <4666F7E5.8040801@noaa.gov> <466758E3.3050505@telus.net> <4667B194.8030306@noaa.gov> <4667C823.7050207@telus.net> <4668155B.6090004@noaa.gov> <46683A19.1030603@telus.net> <4669DB7D.30503@noaa.gov> <4669E3DB.6010601@noaa.gov> <466A10CC.20409@telus.net> Lenard Lindstrom wrote: > The Pyrex generated header is using definitions found in Python.h . That > must be included before SolveSAC_Wrap.h . > > OK, that solved my compile problem, but now I can't link: *Link command used:* gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-fat-2.5/SolveSAC_Wrap.o tempSolveSAC.o -o SolveSAC_Wrap.so *Result:* /usr/bin/ld: for architecture ppc /usr/bin/ld: flag: -undefined dynamic_lookup can't be used with MACOSX_DEPLOYMENT_TARGET environment variable set to: 10.1 collect2: ld returned 1 exit status lipo: can't open input file: /var/tmp//ccWGTkNA.out (No such file or directory) Thanks for your continued help. DG ]