!Extrn Symbol is resolved by pbcompiler or polink?

Everything else that doesn't fall into one of the other PB categories.
gkaizer
User
User
Posts: 40
Joined: Fri Oct 31, 2003 2:57 pm
Location: Italy

!Extrn Symbol is resolved by pbcompiler or polink?

Post by gkaizer »

i'm trying to link to a symbol in an extern lib file
is it possible to link to external symbols?

ex:

Code: Select all

!Extrn __iob_func@0

Procedure main()
  *FILE.l
  call __iob_func@0
  mov *FILE, eax
  Debug *FILE
EndProcedure

main()

End
and force polib to link to msvcrt.lib, or the extrn is resolved at compile time?
--:: Gkaizer ::--
Using PB 3.92 on WinXP SP2 and 3.91 on Mandrake Linux 10.0
Fred
Administrator
Administrator
Posts: 18350
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Extrn is resolved at linking time (so you can assume it to compile time), and you won't force the use of the MSVCRT.lib with this command (and it will probably conflict with the default libc runtime than PB uses).
gkaizer
User
User
Posts: 40
Joined: Fri Oct 31, 2003 2:57 pm
Location: Italy

Post by gkaizer »

fred, i know i won't force the linker with that command, actually i thought doing something like japbe compiler does... :oops: anyway, i don't think i'm doing that way, too awkward and not quite appropriate

thanks for your prompt reply
--:: Gkaizer ::--
Using PB 3.92 on WinXP SP2 and 3.91 on Mandrake Linux 10.0
Post Reply