First thing to do is to go to this link and download the rar file. On unpacking we get revised WinFBE32.exe and WinFBE.64.exe. The next step is to rename the existing binaries in the WinFBE_Suite folder to, say, WinnFBE32old.exe and WinFBE64old.exe and then drop the new binaries next to them.
I have completely rewritten SetGCCforWinFBE and called it SetCompilerPaths. There is no mention of WinFBE in the name because the same tool will be used for poseidonFB.
NOTE: Original SetCompilerPaths would accommodate up to four pairs of compiler paths - it will now accommodate up to six. (10 Sept 2019)
Download: SetCompilerPaths.zip
Unpack and drop into the UserTools folder.
Now run WinFBE32 or WinFBE64, whichever you use, navigate to Options>Environment Options...>Compiler Setup and make a note of the two compiler paths; which should read '.\FreeBASIC-1.06.0\fbc32.exe' and '.\FreeBASIC-1.06.0\fbc64.exe'.
Now create SetCompilerPaths.ini along the following lines:
Code: Select all
"WinFBE", "E:\Downloads\WinFBE_Suite\Settings\WinFBE.ini"
"5.2", "C:\Program Files (x86)\FreeBASIC\fbc.exe", "E:\Downloads\FreeBASIC-1.07.0-win64\fbc.exe"
"8.1", ".\FreeBASIC-1.06.0\fbc32.exe", ".\FreeBASIC-1.06.0\fbc64.exe"
The next three strings are a description followed by a 32-bit path and a 64-bit path got from the 1.07 installed version of fbc and the standalone version respectively.
The last three strings are "8.1", the gcc version used by WinFBE, followed by the two paths you noted earlier.
DO NOT finalize the ini file with an ENTER.
Now put SetCompilerPaths.ini into the UserTools folder.
Now to crate a tool.
Go to Tools>User Tools... to open the User Tools form.
Click on 'Insert' and type Set Compiler Paths into the 'Tool Name:' edit box. This will populate the list on the left hand side as well.
Now type .\UserTools\SetCompilerPaths.exe into the 'Command:' edit box.
Click on Ctrl and type 3 into the 'Key' edit box.
At the bottom of the form click on 'Display this item in the editor menu'
Now use the chevrons at the bottom left so that 'Set Compiler Paths' is at the bottom of the list.
Close the form with OK.
That's it. If you click on Tools in the menu you should see 'Set Compiler Paths Ctrl+3' and you are good to go.
If you click on that entry this should pop up.
You now have access to the official fbc build and 1.06/8.1 which can be changed 'on the fly'. I have been using 8.1 for a while now and found it to be fairly robust but if ever it proves problematic then we can switch to the official build 'at the drop of a hat'.
You now have two empty slots to add further builds - good luck on that one.