|
From: James T. <jam...@gm...> - 2009-01-05 19:24:56
|
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." |