Recommended settings for FBIde users

New to FreeBASIC? Post your questions here.
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Recommended settings for FBIde users

Post by fxm »

counting_pine wrote: Mar 11, 2022 12:47 Probably the best way to request this is through a Pull Request on Github. Is that something you're able to do?
I can fill in an Issue on https://github.com/countingpine/fbide from my github account.
Is this correct and in the right place ?
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Recommended settings for FBIde users

Post by fxm »

fxm wrote: Mar 11, 2022 13:28
counting_pine wrote: Mar 11, 2022 12:47 Probably the best way to request this is through a Pull Request on Github. Is that something you're able to do?
I can fill in an Issue on https://github.com/countingpine/fbide from my github account.
Is this correct and in the right place ?

Done: mingwm10.dll must be updated in the FBIde download file
fxm
Moderator
Posts: 12081
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Recommended settings for FBIde users

Post by fxm »


My request is that in the file http://sourceforge.net/projects/fbide/files/fbide%200.4/fbide%200.4.6%20r4/FBIde0.4.6r4.zip at least (and maybe in other locations), we downright replace the mingwm10.dll file by a newer version, and not a comment in the fbc readme.txt file.
counting_pine
Site Admin
Posts: 6323
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Re: Recommended settings for FBIde users

Post by counting_pine »

I’m not sure if we have access to fbide.freebasic.net.. does anyone know?
deltarho[1859]
Posts: 4292
Joined: Jan 02, 2017 0:34
Location: UK
Contact:

Re: Recommended settings for FBIde users

Post by deltarho[1859] »

The following applies to fbc >= 1.09.0. fbc 1.09.0 introduced #cmdline. Before fbc 1.09.0 to write 32-bit or 64-bit code we had to point to the appropriate fbc in 'FBIde settings>FreeBASIC>Compiler path'. Rather than edit the 'Compiler path' one method was to have two folders containing FBIde - with one pointing to the 32-bit version of fbc and the other pointing to the 64-bit version of fbc.

Below is a method to access 32-bit or 64-bit without editing 'Compiler path' or using two folders.

If you have not already done so then download the combined 32-bit and 64-bit standalone versions of fbc from Version 1.09.0 Released i.e. FreeBASIC-1.09.0-winlibs-gcc-9.3.0.7z.

In 'Compiler path' point to fbc64.exe.

In your bas source, choose one of the following.

Code: Select all

#cmdline "-arch 686" => gas [1]
#cmdline "-gen gas64" => gas64 [2]
#cmdline "-arch 686 -gen gcc" => gcc 32-bit [3]
#cmdline "-gen gcc" => gcc 64-bit [4]

Needless to say, you may add to #cmdline as per your requirements.

For example:

Code: Select all

-w all -fpmode fast -fpu sse -arch 686 -gen gcc -O 2
The '-arch 686 -gen gcc' entries will give gcc 32-bit from [3] above.

So, the binary compiler invoked is via #cmdline.

Don't forget to point to fbc64.exe in 'Compiler path'. Pointing to fbc32.exe will see [2] failing to compile and [4] will give 32-bit and not 64-bit; using 486.

That is it. :)
Post Reply