![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Dec 2005
Posts: 2
Rep Power: 0
![]() |
File format not recognized
Greetings all,
I've started to work through the pdf book available online by Paul Carter.. http://www.drpaulcarter.com/pcasm/index.php After doing the first example i seem to be running into problems. Here is my error: bash-2.05b$ nasm -f coff first.asm bash-2.05b$ gcc -o first first.o driver.c asm_io.o first.o: file not recognized: File format not recognized collect2: ld returned 1 exit status bash-2.05b$ ; file: first.asm ; First assembly program. This program asks for two integers as ; input and prints out their sum. ; ; To create the executable using djgpp: ; nasm -f coff first.asm ; gcc -o first first.o driver.c asm_io.o %include "asm_io.inc" Java is my first language so this is a little new to me. If anyone has any ideas where i am going wrong then i would really appreciate it. Cheers |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Dec 2005
Posts: 2
Rep Power: 0
![]() |
Think this is solved now, i should be using 'elf' instead of 'coff' apparently.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|