From Swordfish Wiki

Swordfish: ModuleLocation

Prior to version 2.2.2.2 of the Swordfish compiler, you had to store your modules in either the root of you main program directory or within the "UserLibrary" space. Now you can store your module code in any-sub folder of your main program directory. For example:

 c:\my program\project\progMain.bas
 c:\my program\project\modules\spi\mySpi.bas
 c:\my program\project\modules\uart\myUART.bas
 ...

to access a module in your main program, just use a standard include. For example,

include "mySPI.bas"
include "myUART.bas"

and the compiler will find and link it automatically.

Retrieved from https://www.sfcompiler.co.uk/wiki/pmwiki.php?n=Swordfish.ModuleLocation
Page last modified on May 02, 2014, at 11:33 AM