[SOLVED] What file to download? "Disk read error!"

New to FreeBASIC? Post your questions here.
Post Reply
littlebigman
Posts: 62
Joined: May 21, 2010 11:47

[SOLVED] What file to download? "Disk read error!"

Post by littlebigman »

Hello,

I have two issues:

1. I'm confused about what file I should download to write and compile a Freebasic file:

Code: Select all

FreeBASIC-1.09.0-win32.7z	2022-01-01	19.0 MB	6
fbc-1.09.0-win32.7z	2022-01-01	3.2 MB	1
winlibs-gcc-9.3.0	2022-01-01		438
win32-mingworg	2022-01-01		2
2. When unzipping FreeBASIC-1.09.0-winlibs-gcc-9.3.0.7z, I get: "Disk read error!" at some point.

Thank you.
Last edited by littlebigman on Feb 28, 2022 18:42, edited 1 time in total.
exagonx
Posts: 314
Joined: Mar 20, 2009 17:03
Location: Italy
Contact:

Re: What file to download? "Disk read error!"

Post by exagonx »

littlebigman wrote: Feb 28, 2022 15:59 Hello,

I have two issues:

1. I'm confused about what file I should download to write and compile a Freebasic file:

Code: Select all

FreeBASIC-1.09.0-win32.7z	2022-01-01	19.0 MB	6
fbc-1.09.0-win32.7z	2022-01-01	3.2 MB	1
winlibs-gcc-9.3.0	2022-01-01		438
win32-mingworg	2022-01-01		2
2. When unzipping FreeBASIC-1.09.0-winlibs-gcc-9.3.0.7z, I get: "Disk read error!" at some point.

Thank you.
Hi, if you are using Windows I suggest you download the self-executing version FreeBASIC-1.09.0-win32.exe to proceed with the first installation, then if your system is Windows 64bit you can download FreeBASIC-1.09.0-win64.zip and replace the contents of the installation folder with files for 64bit system.

Obviously, unless you expressly need to compile a program for 64bit architecture you can very well continue to use the 32bit version.

ps.
Very important, FreeBASIC is a compiler not an IDE so if you need to use software that helps you write code for FreeBASIC I recommend using Geany available for Windows and Linux
littlebigman
Posts: 62
Joined: May 21, 2010 11:47

Re: What file to download? "Disk read error!"

Post by littlebigman »

Thanks much.

The EXE succesfully installed the whole thing.

I'm still using 32-bit Windows, so no need/use for 64-bit stuff.

I'll check out https://www.geany.org/.
littlebigman
Posts: 62
Joined: May 21, 2010 11:47

Re: [SOLVED] What file to download? "Disk read error!"

Post by littlebigman »

I notice even the installer doesn't update Windows' PATH, so it won't find fbc.exe, and the include + libraries.

Thus, after unzipping FreeBASIC-x.7z in eg. c:\FreeBasic\, append the following to Windows' PATH: C:\FreeBasic;C:\FreeBasic\inc;C:\FreeBasic\lib\win32

Third-party libraries (.a, .dll) must be installed in c:\FreeBasic\lib\win32\.

Files:
  • fbc-x.7z: Just bin, include, lib
  • FreeBASIC-x.7z: bin, include, lib, doc, examples
  • FreeBASIC-x-winlibs-gcc-x.7z or FreeBASIC-x-gcc-x.7z: Combined 32+64 bits
  • win32-mingworg : ?
exagonx
Posts: 314
Joined: Mar 20, 2009 17:03
Location: Italy
Contact:

Re: [SOLVED] What file to download? "Disk read error!"

Post by exagonx »

littlebigman wrote: Mar 05, 2022 6:12 I notice even the installer doesn't update Windows' PATH, so it won't find fbc.exe, and the include + libraries.

Thus, after unzipping FreeBASIC-x.7z in eg. c:\FreeBasic\, append the following to Windows' PATH: C:\FreeBasic;C:\FreeBasic\inc;C:\FreeBasic\lib\win32

Third-party libraries (.a, .dll) must be installed in c:\FreeBasic\lib\win32\.

Files:
  • fbc-x.7z: Just bin, include, lib
  • FreeBASIC-x.7z: bin, include, lib, doc, examples
  • FreeBASIC-x-winlibs-gcc-x.7z or FreeBASIC-x-gcc-x.7z: Combined 32+64 bits
  • win32-mingworg : ?
The only paths you need to specify in the Windows path is that of FreeBASIC / bin, if you use third-party frameworks or libraries these have an autonomous folder and also add these folders in the search path, as regards the compilation I recommend you use the following example which specifies libraries and headers to compile a program that uses GTK

Code: Select all

	
	#IF DEFINED(__FB_WIN32__)
	#LIBPATH "C:\msys64\mingw64\lib" 
	Slash = "\"
	#ELSE
	#LIBPATH "/usr/lib"
	Slash = "/"
	#ENDIF
obviously to remember that each library to be used needs its ".bi" file which declares functions, sub and classes, in file it must be specified with #inclib "mylib" and the file must be in the system path or in the directory of the plan.
littlebigman
Posts: 62
Joined: May 21, 2010 11:47

Re: [SOLVED] What file to download? "Disk read error!"

Post by littlebigman »

Thank you.
Post Reply