Page 1 of 1

linking object-file by hand???

Posted: Sun Oct 28, 2007 5:32 pm
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?

Re: linking object-file by hand???

Posted: Sun Oct 28, 2007 9:41 pm
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 ^_^

Posted: Mon Oct 29, 2007 1:46 am
by Brice Manuel
Thank you Irene. I was struggling with this problem myself.

Posted: Mon Oct 29, 2007 8:36 am
by Pinhead
Thank you Irene!
Nice idea, it works fine.