|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D - compiling i386 on a ppc mac
I try to compile a program with gdc on a ppc mac: gdc -o main main.d -arch i386 -fversion=Tango -fversion=Posix -L/SDKs/ MacOSX10.4u.sdk/usr/lib -L/SDKs/MacOSX10.4u.sdk/usr/lib/system -lgtango - lz -lssl But i get these errors on linking: /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning /usr/lib/ libcrypto.0.9.7.dylib cputype (18, architecture ppc) does not match cputype (7) for specified -arch flag: i386 (file not loaded) /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning fat file: /usr/lib/ system/libmathCommon.A.dylib does not contain an architecture that matches the specified -arch flag: i386 (file ignored) /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols: _fegetround referenced from libSystem expected to be defined in /usr/lib/ system/libmathCommon.A.dylib The libraries in /usr/lib are indeed not for i386, but ppc only. But they are also in /SDKs/MacOSX10.4u.sdk/usr/lib for i386 (and ppc, universal binaries from xcode). Anyone knows how to convince gdc to look in the given include paths first for these files, too? It seems to work for other includes. I tried to specify them explicitly (e.g.: -L/SDKs/MacOSX10.4u.sdk/usr/lib/ libcrypto.0.9.7.dylib), but nothing changed. :( May 05 2008
Moritz Warning wrote:The libraries in /usr/lib are indeed not for i386, but ppc only. But they are also in /SDKs/MacOSX10.4u.sdk/usr/lib for i386 (and ppc, universal binaries from xcode). Anyone knows how to convince gdc to look in the given include paths first for these files, too? It seems to work for other includes. May 05 2008
On Mon, 05 May 2008 21:07:09 +0200, Anders F Björklund wrote: [..] May 05 2008
|