Can someone please explain one more time how to compile multiple modules, from the dos-prompt?
Seems to go wrong with my stuff. Some clean stuff might be refreshing.
thx
Compile mutiple modules
- Seb McClouth
- Veteran
- Posts: 342
- Joined: Wed Nov 09, 2005 7:47 am
- Location: Inside the Matrix...
- Contact:
Compile mutiple modules
QBinux is a Linux distribution with the aim of integrating the work of the vast community of free software developers at Pete's QBASIC Site in order to create a modern, performant, safe and easy to use system for system administrators and desktop users.
- {Nathan}
- Veteran
- Posts: 1169
- Joined: Thu Aug 19, 2004 6:08 pm
- Location: The wetlands of central Ohio, USA
- Contact:
'$include.
Whenever I need to compile multiple modules I include them. When the compiler stumbles upon an include in foo.bas, it stops compiling foo.bas and begins compiling foo.bi. When it is done with foo.bi, it goes back to compiling foo.bas.
I am 90% sure that is how they do it in QB, as they do it in FB too. As far as the command line goes, I honestly have no idea
Whenever I need to compile multiple modules I include them. When the compiler stumbles upon an include in foo.bas, it stops compiling foo.bas and begins compiling foo.bi. When it is done with foo.bi, it goes back to compiling foo.bas.
I am 90% sure that is how they do it in QB, as they do it in FB too. As far as the command line goes, I honestly have no idea
Re: Compile mutiple modules
If you can compile a single module then compiling multiple modules shouldn't be much trouble. Compile each source to generate and OBJ file, then link them all with the appropriate run time library.Seb McClouth wrote:Can someone please explain one more time how to compile multiple modules, from the dos-prompt?
Seems to go wrong with my stuff. Some clean stuff might be refreshing.
thx
What is it that goes "wrong"?
The most common difficulty with multiple modules is the use of global variables (look up "common").
- Seb McClouth
- Veteran
- Posts: 342
- Joined: Wed Nov 09, 2005 7:47 am
- Location: Inside the Matrix...
- Contact:
I was just wondering if someone could show me a 'good way'.
QBinux is a Linux distribution with the aim of integrating the work of the vast community of free software developers at Pete's QBASIC Site in order to create a modern, performant, safe and easy to use system for system administrators and desktop users.