Qbasicnews.com
troubles linking - Printable Version

+- Qbasicnews.com (http://qbasicnews.com/newforum)
+-- Forum: Qbasic "like" compilers/interpreters (http://qbasicnews.com/newforum/forum-5.html)
+--- Forum: FB Discussion & Programming Help (http://qbasicnews.com/newforum/forum-15.html)
+--- Thread: troubles linking (/thread-6393.html)



troubles linking - xteraco - 03-10-2005

um.. i want to link a .bas file and .bi file w/ my main src file, what would the bit look like between <fbc> <filename>

like, how do i link them so when it compiles it all works together?


troubles linking - lkd85 - 03-10-2005

Include the .bi file in you source files with '$Include: "file.bi". To compile multiple files together run fbc with each of the .bas files to be included:

fbc main.bas, 1.bas, 2.bas,...

use option -m to set the main basic file.

fbc 1.bas, 2.bas, 3.bas -m 3 '3.bas is entry point