Page 1 of 1
how do I use POLINK to make an exe of an obj?
Posted: Sat May 27, 2006 9:29 pm
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!
Posted: Sat May 27, 2006 10:04 pm
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.
Posted: Sat May 27, 2006 10:43 pm
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

Posted: Sun May 28, 2006 7:16 am
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

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.
Posted: Sun May 28, 2006 10:02 am
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 
Posted: Sun May 28, 2006 11:08 am
by josku_x