Page 1 of 1

PB v6.21 Bugfix Linux C-Backend and ThreadSafe

Posted: Wed Nov 12, 2025 9:27 pm
by mk-soft
Link: PureBasic - Assembler error: implicit declaration of function 'PB_FreeGtkBase'

Bugfix PB v6.21 for Linux with Debian 13, Raspberry PI with Debian 13

Code: Select all

;-TOP by mk-soft, v1.01.1, 12.11.2025

; PB v6.21 (Debian 13) Fix C-Backend PB_FreeGtkBase over C-Macro
CompilerIf #PB_Compiler_OS = #PB_OS_Linux And #PB_Compiler_Version = 621
  CompilerIf #PB_Compiler_Thread And #PB_Compiler_Backend = #PB_Backend_C
    Procedure FixFreeGtkBaseThread()
      !#define PB_FreeGtkBase() PB_FreeGtkBase_THREAD()
    EndProcedure : FixFreeGtkBaseThread()
  CompilerEndIf
CompilerEndIf

MessageRequester("Test", "Test")
Why it works with the others with these errors, I don't know?

PB v6.21:
Bug Linux C-backend Intel and ARM with ThreadSafe in PB_EndFunctions

Code: Select all

//
void PB_EndFunctions() {
PB_Event_Free();
PB_FreeGtkBase(); // <--- Must be PB_FreeGtkBase_THREAD();
PB_FreeObjects();
PB_FreeMemorys();
}
// 
Fixed in PB v6.30