flat assembler
Message board for the users of flat assembler.

Index > Linux > linking 32-bit ELFs under Ubuntu 64

Author
Thread Post new topic Reply to topic
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
I post it because possibly there is more people there that can't compile libcdemo example.

Code:
; fasm example of using the C library in Linux

; compile the source with commands like:
;   fasm libcdemo.asm libcdemo.o
;   gcc libcdemo.o -o libcdemo
;   strip libcdemo    


Instead of "gcc libcdemo.o -o libcdemo" use "gcc -m32 libcdemo.o -o libcdemo". This will stop the warning message about the architecture incompatibility and the executable will work instead of throwing "segmentation fault".

Regards
Post 07 Sep 2006, 21:54
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.