![]() |
| | #1 |
| Registered User Join Date: Sep 2007
Posts: 4
| compiling assembly in linux with nasm From the directions on one page I followed i did Code: nasm -f elf program1.asm ls program1.o -o program1 Code: ld: i386 architecture of input file `program1.o' is incompatible with i386:x86-64 output |
| nano78 is offline | |
| | #2 |
| Senior software engineer Join Date: Mar 2007 Location: Portland, OR
Posts: 5,381
| If your version of NASM is 2.00 or greater, try using "-f elf64" instead of "-f elf"
__________________ "Congratulations on your purchase. To begin using your quantum computer, set the power switch to both off and on simultaneously." -- raftpeople@slashdot |
| brewbuck is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Compiling Linux kernel on Windows | jmd15 | Linux Programming | 9 | 04-10-2006 07:28 AM |
| Compiling a C program in Linux | hern | C Programming | 14 | 06-28-2004 08:33 PM |
| Code not compiling in Linux | CompiledMonkey | C++ Programming | 5 | 06-22-2004 09:06 AM |
| Linux for Windows! | Strut | Linux Programming | 2 | 12-25-2002 11:36 AM |
| Linux? Windows Xp? | VooDoo | Linux Programming | 15 | 07-31-2002 08:18 AM |