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

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

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

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

Post 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
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Post 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.
Post Reply