How to install José Roca's WinFBX library

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

How to install José Roca's WinFBX library

Postby jj2007 » Jul 04, 2018 17:48

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: 392
Joined: Sep 27, 2016 18:20
Location: Valencia, Spain

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

Postby Josep Roca » Jul 04, 2018 18:24

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: 324
Joined: Sep 03, 2007 18:40

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

Postby jcfuller » Jul 05, 2018 9:40

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: 392
Joined: Sep 27, 2016 18:20
Location: Valencia, Spain

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

Postby Josep Roca » Jul 05, 2018 13:22

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

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

Postby jj2007 » Jul 05, 2018 13:59

Two swallows?

Return to “Beginners”

Who is online

Users browsing this forum: St_W and 2 guests