RE: simple hello.asm (NASM) not compile in x64, plz help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(Note: I originally sent this message on Nov. 29, but the server bounced it because my email client included some HTML. I'm trying again here. I apologize if this is a duplicate for you.)

If you’re interested in using the gnu programming environment, I have written an introductory textbook on the topic. You can get more information at http://bob.cs.sonoma.edu/. I sell it at lulu.com, but you can download a preview copy (first seven chapters) for free from my website. It’s specifically about the 64-bit platform.

--Bob Plantz


-----Original Message-----
From: linux-assembly-owner@xxxxxxxxxxxxxxx [mailto:linux-assembly-owner@xxxxxxxxxxxxxxx] On Behalf Of eric lin
Sent: Friday, November 28, 2014 8:36 PM
To: linux-assembly@xxxxxxxxxxxxxxx
Subject: simple hello.asm (NASM) not compile in x64, plz help

hello:
I copied a simple hello.asm  (NASM) assembly program from www.tldp.org/HOWTO/html_single/Assembly-HOWTO/
try to compile and run on my linux 64(ubuntu14.04), but I got errors:

-------------------------------------

ld -s -o heworl heworl.o
ld:i386 architecture of input file *.o is incompatible with i386:x86-64 output
-------------------------------------------------
please help,(how to make it compile and run on my 64 platform rather than ask me switch to 32 bit platform),thanks a lot ina dvance, eric

_____________________________________________________________
Luxmail.com
--
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at  http://vger.kernel.org/majordomo-info.html

��.n��������+%������w��{.n�����{�������ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f




[Index of Archives]     [Kernel Newbies]     [Security]     [Linux C Programming]     [Linux for Hams]     [DCCP]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux