newbie compilation Failed question

New to FreeBASIC? Post your questions here.
Pepe
Posts: 1
Joined: May 17, 2016 20:24

newbie compilation Failed question

Postby Pepe » May 17, 2016 21:42

Hi, newbie here...
I installed 64 bit fbc and Free Basic IDE 0.4.6.
I opened Hello.bas from C:\Program Files\FreeBASIC-1.05.0-win64\examples
I then tried to compile..I got Compilation Failed!
It says error number 26, File Access Error

Any help would be very appreciated
Thx
Pepe
badidea
Posts: 1545
Joined: May 24, 2007 22:10
Location: The Netherlands

Re: newbie compilation Failed question

Postby badidea » May 18, 2016 7:25

Hi, try copying the examples to a different location. "Program Files" might be write protected.
Jonge
Posts: 129
Joined: Jul 17, 2012 17:51
Location: Norway
Contact:

Re: newbie compilation Failed question

Postby Jonge » Jul 13, 2016 21:22

I just wanted to share a fix to a similar problem I had after getting a new Win10 computer.

I usually keep a folder "C:\Dev" for my FB stuff, but after copying my dev folder from a older computer to my new, I only got " 26 File access error" when trying to compile my projects(also FBedit didn't save the settings I changed). This seems to only happen on "C:\" (even though I'm logged in as a Admin) so if your computer has another partition then you can use that one. I didn't have another partition with extra space so I right clicked the "C:\Dev" folder –>Properties–>Security and gave all users full access to this folder. Now everything works as expected.
MrSwiss
Posts: 3262
Joined: Jun 02, 2013 9:27
Location: Switzerland

Re: newbie compilation Failed question

Postby MrSwiss » Jul 13, 2016 21:51

badidea wrote:"Program Files" might be write protected.
"Program Files" & "Program Files (x86)" are, by default, write protected.
On all newer WIN-OS's, AFAIK from WIN 8 upwards. (Vers. 8.0, 8.1, 10)
Only access is granted to "trusted installer"-user, by default.
exagonx
Posts: 110
Joined: Mar 20, 2009 17:03
Location: Italy
Contact:

Re: newbie compilation Failed question

Postby exagonx » Aug 04, 2016 20:59

Pepe wrote:Hi, newbie here...
I installed 64 bit fbc and Free Basic IDE 0.4.6.
I opened Hello.bas from C:\Program Files\FreeBASIC-1.05.0-win64\examples
I then tried to compile..I got Compilation Failed!
It says error number 26, File Access Error

Any help would be very appreciated
Thx
Pepe


from command line

Code: Select all

xcopy C:\Program Files\FreeBASIC-1.05.0-win64\examples\*.* C:\users\myuser\Documents\examples /e /s
cd c:\users\myusers\Documents\examples
fbc hello.bas


The directory "Program Files" is write protected because is a system folder, copy all the example in Document or other folder not protected and then you can compile it.

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 24 guests