[RESOLVED] Threadsafe errors

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

[RESOLVED] Threadsafe errors

Post by Mistrel »

Code: Select all

ProcedureDLL Test()
	string.s+""
EndProcedure
Compile that to a Tailbite library without threadsafe and compile a executable with threadsafe using the following source:

Code: Select all

Test()
Here is the full error:

Code: Select all

---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol '_PB_StringBasePosition'.

POLINK: fatal error: 1 unresolved external(s).


---------------------------
OK   
---------------------------
If you compile the same library to a threadsafe Tailbite library and try compile to an executable without threadsafe you'll get this error:

Code: Select all

---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol '_SYS_CheckProcedureStringBuffer'.

POLINK: error: Unresolved external symbol '_SYS_FreeProcedureStringBuffer'.

POLINK: fatal error: 2 unresolved external(s).


---------------------------
OK   
---------------------------
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

You have to use the Subsystems for that.

UserLibThreadSafe
UserLibUnicode
UserLibUnicodeThreadSafe
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

How exactly do subsystems work with PureBasic and Tailbite? I'm not familiar with this feature.
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post by ABBKlaus »

This topic is added in the online help : http://www.tailbite.com/help/index.html
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

I got it working. Thank you, ABBKlaus. :)
Post Reply