Page 1 of 1

[RESOLVED] Threadsafe errors

Posted: Fri Mar 28, 2008 5:21 am
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   
---------------------------

Posted: Fri Mar 28, 2008 8:48 am
by ABBKlaus
You have to use the Subsystems for that.

UserLibThreadSafe
UserLibUnicode
UserLibUnicodeThreadSafe

Posted: Fri Mar 28, 2008 9:26 am
by Mistrel
How exactly do subsystems work with PureBasic and Tailbite? I'm not familiar with this feature.

Posted: Sat Mar 29, 2008 7:13 pm
by ABBKlaus
This topic is added in the online help : http://www.tailbite.com/help/index.html

Posted: Sun Mar 30, 2008 1:48 am
by Mistrel
I got it working. Thank you, ABBKlaus. :)