How to install José Roca's WinFBX library

New to FreeBASIC? Post your questions here.
Post Reply
jj2007
Posts: 2326
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

How to install José Roca's WinFBX library

Post by jj2007 »

1. Go to this Github page
2. Click on the green Clone or Download button
3. Open the zip archive, and select the Afx folder
4. Extract it to your main FB folder, e.g. C:\MyStuff\FreeBasic
5. Test the installation by extracting a source from the WinFBE-master\Examples subfolders to your main FB folder
6. Build the source from there

To build sources from any other folder, create (e.g. with Notepad) a CompileFB.bat file with this content in the folder where fbc.exe sits:

Code: Select all

@echo off
set options=-t 2000 -Wc -O2 -s console
echo ** compiling %~nx1 with %options% **
set path=%~p0
fbc.exe %options% %1
Afterwards, drag *.bas files over CompileFB.bat (or associate the bas ending with it, or configure your IDE, ...).
Josep Roca
Posts: 564
Joined: Sep 27, 2016 18:20
Location: Valencia, Spain

Re: How to install José Roca's WinFBX library

Post by Josep Roca »

When used with an IDE written for FreeBasic, they have options to set the compiler options and include paths. Not many people use batch files to compile with Windows.
jcfuller
Posts: 325
Joined: Sep 03, 2007 18:40

Re: How to install José Roca's WinFBX library

Post by jcfuller »

Josep,
I must be one of the exceptions as I use batch files for ALL the languages I use!
Fb,Pb,VC,O2,bc9,bcx,pellesC,MinGW.....

James
Josep Roca
Posts: 564
Joined: Sep 27, 2016 18:20
Location: Valencia, Spain

Re: How to install José Roca's WinFBX library

Post by Josep Roca »

One swallow does not a summer make.
jj2007
Posts: 2326
Joined: Oct 23, 2016 15:28
Location: Roma, Italia
Contact:

Re: How to install José Roca's WinFBX library

Post by jj2007 »

Two swallows?
Post Reply