|
From: James T. <jam...@gm...> - 2009-01-06 14:30:08
|
Sorry about not following the Etiquette. I tried adding a space to the '-mi386pe' option '-m i386pe' and I get the same results. crt2.o: file not recognized: File format is ambiguous crt2.o: matching formats: coff-i386 pe-i386 The command I am using: ld -m i386pe --oformat pei-i386 --subsystem console -s crt2.o .... (multiple *.o's) -o file.exe On Mon, Jan 5, 2009 at 8:44 PM, JonY <10...@gm...> wrote: > Shouldn't it be "i686-pc-mingw-ld" rather than just "ld". I am assuming > you are cross-compiling on a Solaris machine for Windows. > You may need to install a cross-assembler as well. This is from the third party 'maven-launch4j-plugin'. The above command works on linux and solaris sparc. Also, the above packages the 'ld' and 'windres' commands only for linux and sparc. I have tried to contact the maintainer to no avail. I built the binutils and simply followed the 'maven-launch4j-plugin' method of packaging the 'ld/windres' binaries. I built binutils with the following: configure --enable-targets=i686-pc-mingw32 --disable-nls binutils/ld/ld-new binutils/binutils/windres I then copied these to the 'maven-launch4j-plugin' configuration to create the required pkgs. hope the above makes a little more sense at what I am doing. -James -- Everett Dirksen - "A billion here, a billion there, and pretty soon you're talking about real money." |