Page 1 of 1

[SOLVED] 1.876 (4.20) - undefined symbol ...

Posted: Fri May 30, 2008 5:54 am
by Mistrel
Tailbite code:

Code: Select all

ProcedureDLL.s TB_Test()
EndProcedure
Errors during TailBite compilation:

Code: Select all

PBCompiler:  /COMMENTED /DEBUGGER
******************************************
PureBasic 4.20 (Windows - x86)
******************************************
Compiling D:\Program Files\PureBasic\TailBite\Samples\MyDebugErrorPlugin\MyDebugErrorPlugin.pb
Loading external libraries...
Starting compilation...
5 lines processed.
Creating executable.
Error: Assembler
PureBasic.asm [84]:
MP0
PureBasic.asm [66] MP0 [5]:
  MOV    eax,[_PB_StringBasePosition]
error: undefined symbol '_PB_StringBasePosition'.
I think this is due to the string library not being included. If I'm correct this is a known issue and not a bug.

This fixes it:

Code: Select all

a.s=""
ProcedureDLL.s TB_Test()
EndProcedure

Posted: Fri May 30, 2008 8:22 pm
by ABBKlaus
yes its a known problem, El Choni has mentioned it in the manual. You can find it here : http://www.tailbite.com/help/Reference/ ... xused.html
The newer versions of PureBasic use the StringManager.
The only workaround i know of that solves the problem is to use string functions inside your application.