POLINK error: unresolved external

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

morosh
Enthusiast
Enthusiast
Posts: 293
Joined: Wed Aug 03, 2011 4:52 am
Location: Beirut, Lebanon

POLINK error: unresolved external

Post 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
PureBasic: Surprisingly simple, diabolically powerful
User avatar
Paul
PureBasic Expert
PureBasic Expert
Posts: 1243
Joined: Fri Apr 25, 2003 4:34 pm
Location: Canada
Contact:

Re: POLINK error: unresolved external

Post by Paul »

Make sure you are using a version of TailBite compiled for PB5.31 x86 or x64
Image Image
morosh
Enthusiast
Enthusiast
Posts: 293
Joined: Wed Aug 03, 2011 4:52 am
Location: Beirut, Lebanon

Re: POLINK error: unresolved external

Post by morosh »

yes I am using the latest version 1.4.13 posted by mpz
PureBasic: Surprisingly simple, diabolically powerful
mpz
Enthusiast
Enthusiast
Posts: 494
Joined: Sat Oct 11, 2008 9:07 pm
Location: Germany, Berlin > member German forum

Re: POLINK error: unresolved external

Post 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
Working on - MP3D Library - PB 5.73 version ready for download
morosh
Enthusiast
Enthusiast
Posts: 293
Joined: Wed Aug 03, 2011 4:52 am
Location: Beirut, Lebanon

Re: POLINK error: unresolved external

Post by morosh »

Yes, exactly

thank you very much
PureBasic: Surprisingly simple, diabolically powerful
Post Reply