how do I use POLINK to make an exe of an obj?

Everything else that doesn't fall into one of the other PB categories.
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

how do I use POLINK to make an exe of an obj?

Post by josku_x »

The title says it all..

I have obj files which I want to 'convert' to exe.
what is the command line for this which PB also uses?

I have no clue and I searched but without luck.

Thanks!
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

I'm guessing it's something like polink a.obj out.exe. PB also links with the PB libraries and API import libraries.
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Post by flaith »

i think you want to make an exe from mscoff example from fasm !
From the mscoff directory, write the following line (just change the directory) :

Code: Select all

F:\_PROGRAMS_\PureBasic4\Compilers\polink /entry:_demo /libpath:F:\_PROGRAMS_\PureBasic4\PureLibraries\Windows\Libraries mscoff.obj user32.lib
with gcc installed (linker = ld) :

Code: Select all

ld -e _demo mscoff.obj libuser32.a -o mscoff.exe -s
:wink:
“Fear is a reaction. Courage is a decision.” - WC
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

flaith wrote:i think you want to make an exe from mscoff example from fasm !
From the mscoff directory, write the following line (just change the directory) :

Code: Select all

F:\_PROGRAMS_\PureBasic4\Compilers\polink /entry:_demo /libpath:F:\_PROGRAMS_\PureBasic4\PureLibraries\Windows\Libraries mscoff.obj user32.lib
with gcc installed (linker = ld) :

Code: Select all

ld -e _demo mscoff.obj libuser32.a -o mscoff.exe -s
:wink:
THanks! Just how did you know to what I need this :roll:
I am stepping into advanced levels, and I don't know much on these, that's why I needed help.
User avatar
flaith
Enthusiast
Enthusiast
Posts: 704
Joined: Mon Apr 25, 2005 9:28 pm
Location: $300:20 58 FC 60 - Rennes
Contact:

Post by flaith »

josku_x wrote:THanks! Just how did you know to what I need this :roll:
I am stepping into advanced levels, and I don't know much on these, that's why I needed help.
you're welcome, and I remembered this post :)
“Fear is a reaction. Courage is a decision.” - WC
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

Post by josku_x »

:)
Post Reply