Page 1 of 1

POLINK error: unresolved external

Posted: Sat May 09, 2015 8:59 am
by morosh
Hello:
I was just trying to make a lib for the following function

Code: Select all

ProcedureDLL.s FormatNum(Number.s,Group.l,DecDig.l,DecSep.s,GrpSep.s,Neg.l);Format Number String
  Protected Buffer.s, NF.NUMBERFMT
  Buffer.s=Space(255)
  NF\NumDigits=DecDig
  NF\LeadingZero=0
  NF\Grouping=Group
  NF\lpDecimalSep=@DecSep
  NF\lpThousandSep=@GrpSep
  NF\NegativeOrder=Neg
  GetNumberFormat_(0,0,Number,NF,@Buffer,Len(Buffer))
  ProcedureReturn Buffer
EndProcedure
tailbite is ok, the lib is generated, but I try to use it in a small program

Code: Select all

Debug FormatNum("1000000",3,0,".",",",1)
Debug FormatNum("-1000000",3,2,".",",",0)
I got POLINK error: unresolved external _PB_StringBasePosition

any help is appreciated

thank you

Re: POLINK error: unresolved external

Posted: Sat May 09, 2015 2:03 pm
by Paul
Make sure you are using a version of TailBite compiled for PB5.31 x86 or x64

Re: POLINK error: unresolved external

Posted: Sat May 09, 2015 6:00 pm
by morosh
yes I am using the latest version 1.4.13 posted by mpz

Re: POLINK error: unresolved external

Posted: Tue May 12, 2015 12:17 am
by mpz
Hi morosh ,

the "POLINK error: unresolved external _PB_StringBasePosition" comes only if you use a "normal" created tailbite lib but you activate then in the source code the compiler function "threadsafe".

You must choose in tailbite manager the function "threadsafe" too to create a "threadsafe" lib. Then you can choose in the sourcode "threadsafe" and no error messsage appears...

Greeting Michael

Re: POLINK error: unresolved external

Posted: Tue May 12, 2015 9:46 am
by morosh
Yes, exactly

thank you very much