It is currently Tue Oct 22, 2019 1:19 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: POLINK error: unresolved external
PostPosted: Sat May 09, 2015 8:59 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Aug 03, 2011 4:52 am
Posts: 215
Location: Beirut, Lebanon
Hello:
I was just trying to make a lib for the following function
Code:
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:
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


Top
 Profile  
Reply with quote  
 Post subject: Re: POLINK error: unresolved external
PostPosted: Sat May 09, 2015 2:03 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 4:34 pm
Posts: 912
Location: Canada
Make sure you are using a version of TailBite compiled for PB5.31 x86 or x64

_________________
Image Image


Top
 Profile  
Reply with quote  
 Post subject: Re: POLINK error: unresolved external
PostPosted: Sat May 09, 2015 6:00 pm 
Offline
Enthusiast
Enthusiast

Joined: Wed Aug 03, 2011 4:52 am
Posts: 215
Location: Beirut, Lebanon
yes I am using the latest version 1.4.13 posted by mpz

_________________
PureBasic: Surprisingly simple, diabolically powerful


Top
 Profile  
Reply with quote  
 Post subject: Re: POLINK error: unresolved external
PostPosted: Tue May 12, 2015 12:17 am 
Offline
Enthusiast
Enthusiast

Joined: Sat Oct 11, 2008 9:07 pm
Posts: 416
Location: Germany, Berlin > member German forum
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 -


Top
 Profile  
Reply with quote  
 Post subject: Re: POLINK error: unresolved external
PostPosted: Tue May 12, 2015 9:46 am 
Offline
Enthusiast
Enthusiast

Joined: Wed Aug 03, 2011 4:52 am
Posts: 215
Location: Beirut, Lebanon
Yes, exactly

thank you very much

_________________
PureBasic: Surprisingly simple, diabolically powerful


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye