PB v6.21 Bugfix Linux C-Backend and ThreadSafe

Post bugreports for the Linux version here
User avatar
mk-soft
Always Here
Always Here
Posts: 6410
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

PB v6.21 Bugfix Linux C-Backend and ThreadSafe

Post 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
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive