|
From: Kai T. <kti...@go...> - 2009-01-05 19:53:35
|
2009/1/5 James Trickel <jam...@gm...>: > On Mon, Jan 5, 2009 at 2:05 PM, Kai Tietz <kti...@go...> wrote: >> 2009/1/5 James Trickel <jam...@gm...>: >>> what does the following error mean? >>> >>> crt2.o: file not recognized: File format is ambiguous >>> crt2.o: matching formats: coff-i386 pe-i386 >>> >>> from the following command: >>> >>> ld -mi386pe --oformat pei-i386 --subsystem console -s crt2.o >>> <snip(more .o's)> -o file.exe >>> >>> ld shows the following: >>> supported emulations: elf_i386_ldso elf_i386 elf_x86_64 i386pe >>> supported targets: elf32-i386 coff-i386 elf64-x86-64 elf64-little >>> elf64-big elf32-little elf32-big pe-i386 pei-i386 srec symbolsrec >>> tekhex binary ihex >>> >>> OS: solaris 10 x86 >>> binutils: 2.19 from mingw >>> gcc: 3.4.6 >>> >>> TIA, >>> -James >>> >>> -- >>> -- >>> Eddie Izzard - "I grew up in Europe, where the history comes from." >> >> Hi James, >> >> you have to add the option '-m i386pe' here. You need to specify the >> emulation to be used directly, because ld has otherwise conflicts to >> find the proper emulation. By specifying this option, it should work. >> >> Cheers, >> Kai >> > > I'm confused..... > The command I am using(below) has the '-mi386pe' option... am I > missing something? > >>> ld -mi386pe --oformat pei-i386 --subsystem console -s crt2.o >>> <snip(more .o's)> -o file.exe > > TIA, > -James > -- > -- > Paula Poundstone - "I don't have a bank account because I don't know > my mother's maiden name." > > ------------------------------------------------------------------------------ > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > > _______________________________________________ > This list observes the Etiquette found at http://www.mingw.org/Mailing_Lists. > We ask that you be polite and do the same. > I am not sure, maybe a space? Kai -- | (\_/) This is Bunny. Copy and paste | (='.'=) Bunny into your signature to help | (")_(") him gain world domination |