Installing in WIN10

New to FreeBASIC? Post your questions here.
Post Reply
Major Tom
Posts: 2
Joined: Dec 08, 2015 14:00

Installing in WIN10

Post by Major Tom »

Hello.

I can't seem to get freebasic working in windows 10. It did work in windows 7 a while ago.
I can't remember how i did it back then.

I can get it running but it always says compiling failed.
I tried an installer and i also tried extracting the files from the website.

Quick run works but it won't compile.

I'm also not very sure what to do with those zip files. I downloaded 3 but get 4 in my download folder.

FBIde0.4.6r4-FreeBASIC0.23.exe.part (1)
fbc-1.04.0-win64 (2)
FBIde0.4.6r4 (3)
and FreeBASIC-1.04.0-win64. (4)

I extracted (4) and (3) and set the path from the IDE to the FBC file in the map created by (4).

I also extracted (2) into (4) but i'm not sure if i did that correct, i tried several different ways.

And (1) i've never seen before.

Also the complete installer i used gives the same result. Quick run works but compiling fails.
I tried running it as an administrator and when i check on the security tab everyone on my pc should have full access.
I'm about to pull out my hair so i was hoping maybe someone here could help me out before i'm bald.

Thanks for your time anyway.
fxm
Moderator
Posts: 12577
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Installing in WIN10

Post by fxm »

What is the output of the compilation?
(copy the entire result of compilation in the window got with "View / Show log")

You can also compare this result with the one got after a "Quick run" (always from the log window).
Last edited by fxm on Dec 08, 2015 18:58, edited 2 times in total.
srvaldez
Posts: 3653
Joined: Sep 25, 2005 21:54

Re: Installing in WIN10

Post by srvaldez »

my suggestion is to install FreeBasic in a directory like C:\dev\FreeBasic
I would first uninstall FB and then install at the suggested location, I had no problems using FB in Windows 10.
also I suggest using another IDE, like FBedit or geany because FBide ignores case in the compiler command
which is needed if you want to pass flags to gcc, for example -gen gcc -Wc -O2
see https://www.freebasic-portal.de/downloa ... freebasic/
Major Tom
Posts: 2
Joined: Dec 08, 2015 14:00

Re: Installing in WIN10

Post by Major Tom »

Thx for the fast reply's. I solved the problem, it works fine now.

I uninstalled everything as you recommended and then installed the whole thing with this .exe file.

http://sourceforge.net/projects/fbide/f ... t/download

It installs everything properly so you don't have to bother extracting and directing. Probably something was wrong there.
fxm
Moderator
Posts: 12577
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Installing in WIN10

Post by fxm »

Yes but it comes with a very old version of FreeBASIC:
FBC 0.23.0 for 32-bit (August 2011)

I think that you can now easily update your present working version 32-bit by simply overwriting the directory containing 'fbc.exe' and 'fbide.exe' with the files and sub-directories from the zip file FreeBASIC-1.04.0-win32.zip (archive):
  • From inside the main directory of the zip file ('FreeBASIC-1.04.0-win32') copy the 3 files and the 5 directories, and overwrite the previous files and directories on your disk (the new 'fbc.exe' must overwrite the old, and so on).
srvaldez
Posts: 3653
Joined: Sep 25, 2005 21:54

Re: Installing in WIN10

Post by srvaldez »

@fxm
it seems that for some people it's a challenge to set up FB and an IDE, they expect it to be an easy to install package, perhaps the package that Major Tom got could be updated?
fxm
Moderator
Posts: 12577
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Installing in WIN10

Post by fxm »

srvaldez wrote:@fxm
it seems that for some people it's a challenge to set up FB and an IDE, they expect it to be an easy to install package, perhaps the package that Major Tom got could be updated?
You have just to unzip the wanted file in any user directory:
(each link is available in 30 days after the last download) - Execute 'fbide.exe' to launch the IDE (ready to 'Quick run' or 'Compile').
- Each package includes the FreeBASIC manual 1.04.0 (access from IDE by 'Help / F1').
- For the win32 package: includes also gcc, in case you want to use '-gen gcc'.


[edit]
- Added package for win64.
Post Reply