Qbasic, Quickbasic/freebasic

Advertisement


Question
QUESTION: Hi Alex.
I am fairly new to FREEBASIC and have not written many programmes. I had version 4.6 and updated to version 4.7. Now only the very simple programmes work. Is there any way to make them run in version 4.7.
PS They are written using -s gui.
Thanks
Bill

ANSWER: Hi, Bill,

I'm not sure what versions you are using.  Right now, the compiler version is 0.20beta ...so I'm not sure where you are getting 4.6 and 4.7 (perhaps you are using a different basic dialect?)

But, to answer your question, I'll need some more information.  What operating system are you using?  How was freebasic installed (with the given installer from sourceforge, did you compile from source, install.sh [linux])?  And, what programs are you trying to compile?

As a suggestion, this is what I'd do - first, completely get rid of FreeBASIC (uninstall, delete the folder it installed it)
Redownload the latest compiler version:
http://freebasic.net/index.php/download

Install it, then try compiling.  If you are still getting problems, you may have to compile with -dialect fblite or -dialect qb

If that doesn't help you out, just toss another question to me, and I'll be happy to help you out.

-Alex

---------- FOLLOW-UP ----------

QUESTION: Hi Alex
Sorry about the confusion.
It was the fbide that was 0.4.7. and FREEBASIC .17. I am running it on Windows XP.Idid as you suggested and downloaded version 2. It included fbide .4.6 which is what I had originally. However I still have the problem of only the simplest of programmes work, ie those without subs and functions. I have tried -lang deprecated and it helps with some programmes but some of the #include files will not run.
Is it just a case of rewriting or is there a way round it.
Thanks for your help
Bill


Answer
Hey, Bill,

Okay, that makes quite a bit more sense (with the version being fbide).

So, if the programs aren't working, it could be multiple problems.  First, are these programs originally form QBasic, or an older version of Freebasic?  What sort of include's does it use?  What programs are you compiling (just hello world examples, programs using gosub/goto, or how are they setup)?  What sort of compile errors are you getting?

If you wish, you can email the programs to me and I can try compiling them (I'm using fbc v0.20b).  My address is: alex [D.OT] barry [A@T] gmail [DO.T] com

Also, one more thing you could try is:  navigate to your freebasic install folder - there should be a program called "start_shell.exe" - open that, and navigate (cd "drive:\path\to\the\programs") to the program, and manually compile (fbc yourprogram.bas [options]) and see what happens.

Hope that points you in the right direction,
-Alex

Qbasic, Quickbasic

All Answers


Answers by Expert:


Ask Experts

Volunteer


Alex Barry

Expertise

I have been a qbasic programmer since 2000, creating games, minor libraries and various small programs. I have experience using interrupts, graphics, file input/output, the mouse cursor, and using libraries. I have also learned FreeBASIC, QB64, c/c++, python, lua, php and html.
I do not claim to be an absolute authority in any language, but I don't mind looking things up and learning with you.

Experience

I have been programming in *Basic dialects since 2000, as mentioned in my expertise. After a year of QBasic, I learned C and C++, and dabbled a little in ASM (I don't program in ASM - I literally just played around to see how things work). When QB64 and FreeBASIC were released, I played with those languages. At the time, FreeBASIC offered more functionality and I sided with that language for a while. During that time, while I was learning new languages, that I would see what scripting languages are available, where I took up python and lua. I started to notice a staleness to QB64's development (which I kept tabs on from time to time), and am now trying to be active in it's community and maybe in it's development in the future. Currently, I am only active on the QB64.net forums, but I appear on occasion on FreeBASIC.net's forums as well.

Education/Credentials
Highschool - 2007

©2012 About.com, a part of The New York Times Company. All rights reserved.