Re: Great explanation

by Michael Calkins (Login MCalkins)
Moderator

 
There are people on these forums who use QB64, most notably Clippy. However, you will find more of them at the QB64 forums.

Both the QB64 forums and QB64 wiki are good sources for a lot of information.

I have started using QB64, but I am not very familiar with it yet, or even any BASIC compiler. My BASIC background is interpreted QBASIC 1.1.

Note that QB64 uses MinGW (Minimalistic GNU for Windows). You can find its files within QB64\internal\c. It includes C and C++ compilers, an assembler, a linker, a debugger, and numerous header files, among other things. However, QB64 runs the GNU C++ compiler for you, so you wouldn't normally need to run it yourself.

Regarding compiling the program from the command line, see:

http://www.qb64.net/wiki/index.php?title=QB64_FAQ#Q:_Is_there_a_way_to_use_the_compiler_without_running_my_program_or_using_the_IDE.3F

Regarding modular programs:

http://www.qb64.net/wiki/index.php?title=LINKed_or_Merged_Modules

If you for some reason your still want to break your source up into multiple files, you can probably use the $INCLUDE directive.

http://www.qb64.net/wiki/index.php?title=$INCLUDE

Note that QB64 does allow the use of C header files, and external DLL files, including the Windows API. You can use DECLARE CUSTOMTYPE LIBRARY and DECLARE DYNAMIC LIBRARY for those purposes.

In some cases QB64 will try to compile a program, and the GNU C++ compile or the linker will find a problem. All QB64 tells you is "C++ compilation failed.". If that happens to you, you can follow chronokitsune's instructions here:

http://www.qb64.net/forum/index.php?topic=4110.msg41763#msg41763

Doing so will allow you to view the error messages from the compiler. (I'm not sure if it shows linker error messages.) But once you have debugged it, make sure to remove what you added to makeline.txt, otherwise QB64 will continue to report failure even after you have fixed the error.

Regards,
Michael



    
This message has been edited by MCalkins on Oct 1, 2011 4:05 AM

Posted on Oct 1, 2011, 3:59 AM

Respond to this message   

Return to Index

 Copyright © 1999-2014 Network54. All rights reserved.   Terms of Use   Privacy Statement