Page 1 of 1

4.2 Userlib Problem?

Posted: Sun Jun 01, 2008 3:29 am
by Karbon
I tried to compile some code today after upgrading and got
---------------------------
jaPBe - Assembler error
---------------------------
Assembler error


PureBasic.asm [333438]:

MP1080

PureBasic.asm [11885] MP1080 [20]:

CALL _SYS_FreeStructureStrings@8

error: undefined symbol '_SYS_FreeStructureStrings@8'.
---------------------------
OK
---------------------------
I'm guessing.. I'm only using the PVGadgets userlib (and Paul has updated it) and one of flype's userlibs (I've emailed him on that).

Has anyone else had this and tracked down the userlib causing it?

Posted: Sun Jun 01, 2008 3:35 pm
by Trond
You can easily find the faulty part of your code by compiling it with the /COMMENTED console switch and looking at the asm file.

Posted: Sun Jun 01, 2008 3:52 pm
by Karbon
I tried that but couldn't see anything definitive.

The linker gives me :

POLINK: error: Unresolved external symbol '_PB_StringBasePosition'.
POLINK: fatal error: 1 unresolved external(s).

I see

extrn _SYS_SetStringBasePosition@4
extrn _SYS_RestoreStringBasePosition@4

In the ASM file but it doesn't really mean anything to me. I'm fairly confident it is the RegINI userlib from Paul since that is the only userlib I'm using not marked for 4.20. I'm in the process of writing PB versions of the SetINIKEy/GetINIKey procedures to see.

Thanks!!

Posted: Sun Jun 01, 2008 4:16 pm
by Karbon
New development, it only happens when the debugger is enabled.