Posted: Fri Aug 14, 2015 6:14 pm Post subject: Does BASCOM support multiple files for a single project?
Hello, I'm new to BASCOM. I have already searched for my question but no one has previously asked; Does BASCOM support program development with multiple files?
I have taken over a working project from someone else; it has over 2700 lines of code. I'd like to break this code into multiple files, but I don't see any support for it in the BASCOM IDE. Does BASCOM support multiple files for a single project?
Thank you, Richard V
(BASCOM-AVR version : 2.0.7.6 , Latest : 2.0.7.8 )
Hello,
As said Ben with $include it is very easy.
see also $nocompile
In the include file you can put what you want : sub, function, lib, constants...
I propose also to test all subs and functions in the main program before out in a include.
ex
'*******************************************************************************
$include "SSD1963_declarations.inc"
$include "SSD1963__sd-card_routines.inc"
$include "SSD1963_functions.inc
$include "Config_MMCSD_HC.bas"
also use the great improvement of
Config Submode = New
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum