Computing.Net > Forums > Programming > exe from bas

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

exe from bas

Reply to Message Icon

Name: ilyas
Date: November 16, 2005 at 09:00:11 Pacific
OS: msdos 7.10
CPU/Ram: intel celeron 128mb
Comment:

i want to make exe files from bas files created with qbasic 1.1
i have downloaded a compiler but don't know how to use it
when i run it 3 files are rquested
1. the bas file 2.object file 3. list file
what are 2 & 3 please help. i am new to programming.



Sponsored Link
Ads by Google

Response Number 1
Name: StuartS
Date: November 16, 2005 at 10:04:59 Pacific
Reply:

Creating an Exe file from source code is a two stage process.

The first stage takes the source code, the BAS file and generates object code, the object file and also generates a list of all the object files it has created. Source code can create more than one object file.

The second stage then links all the object files into an EXE.

It seems you are trying to do the second stage with first doing the first stage.

Some compilers have these two stages, compiling and linking, incorporated into the same application. The actions are controlled by command line arguments which determine what is to be done, compile, link or both and probably options to say where the various files can be found. Some compilers have separate applications for compiling and linking.

Read the instruction carefully keeping in mind the difference between compiling and linking.

Stuart


0

Response Number 2
Name: ilyas
Date: November 17, 2005 at 13:46:46 Pacific
Reply:

thankx StuartS
where can i learn can i learn more about programming


0

Response Number 3
Name: Mechanix2Go
Date: November 17, 2005 at 14:02:37 Pacific
Reply:

http://www.svatopluk.com/qbtutor/index.htm

By the way QB 4.5 has a compiler built in.


If at first you don't succeed, you're about average.

M2


0

Response Number 4
Name: wizard-fred
Date: November 17, 2005 at 16:36:34 Pacific
Reply:

Another possible solution. Download FreeBASIC. It has Windows, DOS, & Linux versions. Very compatible to MS Basics. Single step compile to EXE. I use it because it does long file names.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: exe from bas

Unattended execution of an exe from batch www.computing.net/answers/programming/unattended-execution-of-an-exe-from-batch/20039.html

VB and Open EXE from CD www.computing.net/answers/programming/vb-and-open-exe-from-cd/12088.html

calling .exe from VB6 www.computing.net/answers/programming/calling-exe-from-vb6/10776.html