Current winlibs used in FreeBASIC Compiler - Version 1.09.0

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Post Reply
Axle
Posts: 67
Joined: May 31, 2022 6:49
Location: Australia

Current winlibs used in FreeBASIC Compiler - Version 1.09.0

Post by Axle »

Hi All

I am currently trying to match winlibs build with the current version used in FBC for creating static library binaries for FBC.

The only information I can get from FBC and winlibs is:

Code: Select all

FreeBASIC Compiler - Version 1.09.0 (2021-12-31), built for win64 (64bit)
Copyright (C) 2004-2021 The FreeBASIC development team.
standalone

Code: Select all

winlibs64-sjlj-9.3.0/gcc-9.3.0/mingw-w64
Thread model: posix
gcc version 9.3.0 (MinGW-W64 x86_64-posix-sjlj, built by Brecht Sanders)
This leaves me a choice of several GCC 9.3.0 releases:
https://github.com/brechtsanders/winlib ... ses?page=9
(Page numbers above will change as new builds are added...)
  • GCC 9.3.0 (SJLJ exceptions) + MinGW-w64 7.0.0 (release 2) Pre-release
  • GCC 9.3.0 + MinGW-w64 7.0.0 (release 1)
  • GCC 9.3.0 + MinGW-w64 7.0.0 (release 2)
Can anyone offer the most relevant version of the above 3 downloads?
(Without having to download every build and do version comparisons and actual build tests(trial and error).

Thanks in advance
Axle

(Edit)Update:
I did a comparison and leaning toward GCC 9.3.0 (SJLJ exceptions) + MinGW-w64 7.0.0 (release 2) Pre-release

Code: Select all

FBC-winlibs
sysroot=/R/winlibs64-sjlj-9.3.0/gcc-9.3.0/mingw-w64
Thread model: posix
gcc version 9.3.0 (MinGW-W64 x86_64-posix-sjlj, built by Brecht Sanders)

Code: Select all

GCC 9.3.0 (SJLJ exceptions) + MinGW-w64 7.0.0 (release 2) Pre-release
winlibs-mingw-w64-x86_64-9.3.0-7.0.0-r3-sjlj.7z
sysroot=/R/winlibs64-sjlj-9.3.0/gcc-9.3.0/mingw-w64
Thread model: posix
gcc version 9.3.0 (MinGW-W64 x86_64-posix-sjlj, built by Brecht Sanders)
Am I getting the correct version?

Axle
marcov
Posts: 3455
Joined: Jun 16, 2005 9:45
Location: Netherlands
Contact:

Re: Current winlibs used in FreeBASIC Compiler - Version 1.09.0

Post by marcov »

This answer: https://stackoverflow.com/questions/172 ... x-vs-win32 has an explanation of Posix vs win32 threading. Seems it doens't matter if you don't use C++11 threading constructs

SJLJ is exceptions emulated via setjump/longjmp rather than using more efficient native table based options (SEH for Windows, DWARF exception frames on *nix). SJLJ is simpler however, and table based options were patent-suspect till (iirc) 2017 ( though this was a bit a purist argument because of reactos/wine, since MS licensed it for Windows). Sometimes debug tools have not entirely converted yet.

Recently there are also ucrt vs msvcrt based builds.
Axle
Posts: 67
Joined: May 31, 2022 6:49
Location: Australia

Re: Current winlibs used in FreeBASIC Compiler - Version 1.09.0

Post by Axle »

Hi marcov

Thanks for the response. The question was related to matching the correct winlibs build to the same wninlibs used to build the current FBC and libraries. This is for creating static libraries for the current FBC :)

There were 4 different "GCC 9.3.0 + MinGW-w64 7.0.0" builds to choose from and the sjlj versions seam to only be in the pre-release, so I was just attempting to confirm. The "GCC 9.3.0 (SJLJ exceptions) + MinGW-w64 7.0.0 (release 2) Pre-release" "appears" to be the closest match.

Regerds
Axle
coderJeff
Site Admin
Posts: 4313
Joined: Nov 04, 2005 14:23
Location: Ontario, Canada
Contact:

Re: Current winlibs used in FreeBASIC Compiler - Version 1.09.0

Post by coderJeff »

Axle wrote: Jun 08, 2022 5:04 The "GCC 9.3.0 (SJLJ exceptions) + MinGW-w64 7.0.0 (release 2) Pre-release" "appears" to be the closest match.
The one used is actually r3. It is noted and linked on the fbc 1.09.0 news release page.
coderJeff wrote: Jan 01, 2022 15:21
Axle
Posts: 67
Joined: May 31, 2022 6:49
Location: Australia

Re: Current winlibs used in FreeBASIC Compiler - Version 1.09.0

Post by Axle »

Thanks @coderJeff

The one used is actually r3. It is noted and linked on the fbc 1.09.0 news release page.

coderJeff wrote: ↑Jan 02, 2022 1:21

The MinGW-w64 toolchains used for the main win32/win64 builds can be found here:
Very much appreciate that. I was attempting to get a static compile or raylib under FB. I have put that aside for the moment while I focus on cleaning up/creating the raylib binders v4.0 and raygui v3.x. With all of the different versions of raylib (older, and some broken) and the lack of documentation I have decided to clean it up. Not meaning to sound ungrateful to those who have no doubt put a lot of work into the previous versions, but it needs a clean up and update and I am happy to do that (with a bit of guidance if I get stuck).
I have a lot on my plate so it won't happen overnight, but I will post in the forum + links to github when I get the test version done.

Axle
Post Reply