fbc.exe not compiling

New to FreeBASIC? Post your questions here.
pablo
Posts: 2
Joined: Dec 28, 2015 1:21

fbc.exe not compiling

Postby pablo » Dec 28, 2015 1:28

I modified a program I was using and tried to compile it with fbc.exe but it would not compile. After searching for errors I wrote the simple hello program and it would not compile either. Norton gave me a warning that the software did not have a security certificate but I ignored it. What could be happening?
Roland Chastain
Posts: 858
Joined: Nov 24, 2011 19:49
Location: France
Contact:

Re: fbc.exe not compiling

Postby Roland Chastain » Dec 28, 2015 10:49

Hello and welcome to the forum!

I can't remember where I did put my crystal ball. :)

So, what is the code that you try to compile? What is your operating system? How do you compile? What is the error message?
srvaldez
Posts: 2327
Joined: Sep 25, 2005 21:54

Re: fbc.exe not compiling

Postby srvaldez » Dec 28, 2015 12:07

also tell what version of operating system you are using and the FreeBASIC installation path, and please read the posts at viewtopic.php?f=2&t=24217
pablo
Posts: 2
Joined: Dec 28, 2015 1:21

Re: fbc.exe not compiling

Postby pablo » Dec 28, 2015 14:05

The operating system is Windows 7 professional. One of the simple programs that won't compile is:

Print "hello"
sleep

The freebasic files appear in downloads. The program I am trying to run is saved as hello.bas and I cannot create an executable file opening it with fbc.exe .
fxm
Posts: 9553
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: fbc.exe not compiling

Postby fxm » Dec 28, 2015 14:29

In which directory is your file 'fbc.exe'?
From this directory, when you enter in command line 'fbc hello.bas', what is the compiler response?
srvaldez
Posts: 2327
Joined: Sep 25, 2005 21:54

Re: fbc.exe not compiling

Postby srvaldez » Dec 28, 2015 14:38

you probably have FreeBASIC installed in C:\Program Files\FreeBASIC and the example you are trying to compile is likely in the examples folder
the reason it won't compile is that the folder is protected, it is simpler to have FB installed in a folder that's not protected, that' why I asked you to read the posts at viewtopic.php?f=2&t=24217
also, at the bottom of that thread are pre-packaged FB+FbIde that you can download and unzip to anywhere you like
fxm
Posts: 9553
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: fbc.exe not compiling

Postby fxm » Feb 15, 2016 14:28

His operating system is Windows 7!
cha0s
Site Admin
Posts: 5317
Joined: May 27, 2005 6:42
Location: Illinois
Contact:

Re: fbc.exe not compiling

Postby cha0s » Feb 15, 2016 15:34

fxm wrote:His operating system is Windows 7!


Well, they said

Hi installed Freebasic on my linux mint 17.2 but when I'm compiling i get this error. .


;)
fxm
Posts: 9553
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: fbc.exe not compiling

Postby fxm » Feb 15, 2016 17:47

Excuse me, I was focused on pablo's problem!
cha0s
Site Admin
Posts: 5317
Joined: May 27, 2005 6:42
Location: Illinois
Contact:

Re: fbc.exe not compiling

Postby cha0s » Feb 15, 2016 18:06

You're right, I should have just split the topic which I did now. Sorry about the noise!

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 4 guests