linking object-file by hand???

Linux specific forum
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

linking object-file by hand???

Post by Pinhead »

Hi,
if I use the "-c" flag from the pbcompiler I get a .asm-file, this compiled with fasm give
me an object-file.

How can I link this file by Hand?
Can I link this file against the 32bit libs under x84_64 to build a 32bit app?

Under newer x86-64 Linux it is possible to build 32bit apps, so why not also with purebasic?
Irene
Enthusiast
Enthusiast
Posts: 461
Joined: Thu Oct 04, 2007 12:41 pm

Re: linking object-file by hand???

Post by Irene »

Pinhead wrote:Under newer x86-64 Linux it is possible to build 32bit apps, so why not also with purebasic?
My best advice is to run pbcompiler in a 32-bit chroot to get true 32-bit compiled code. I use chroots in my 64-bit system to run applications such as pbcompiler too and haven't had any problem using it like this ^_^
Brice Manuel

Post by Brice Manuel »

Thank you Irene. I was struggling with this problem myself.
Pinhead
User
User
Posts: 47
Joined: Fri Sep 09, 2005 11:24 pm

Post by Pinhead »

Thank you Irene!
Nice idea, it works fine.
Post Reply