Hi All
St_W it appears I did not explain properly, as I thought my oversight was so simple that I felt dumb for asking the question.
In my projects I only compile the main basic module.
fbc Module1.bas
In Module1 the only include is:
#include once Project.bi
An example of one of my Project.bi files is:
Code: Select all
#Include once "allegro.bi"
#Include once "cgui.bi"
#include once "file.bi"
#include once "fbthread.bi"
#define IA3125 ''If The IA3125 I/O Board is installed.
'#define AccesIO ''If the usb-IDIO-16 is installed.
#if defined(IA3125)
#Include once "types.bi"
#Include once "IA3125.bi"
#Include once "declares.bi"
#Include once "presets.bi"
#Include once "IA3125.bas"
#Endif
#if defined(AccesIO)
#Include once "libusb-1.0.bi"
#Include once "types.bi"
#Include once "AIO-16.bi"
#Include once "declares.bi"
#Include once "presets.bi"
#Include once "AIO-usb.bas"
#endif
#Include once "Win01.bas"
#Include once "Win02.bas"
#Include once "WinHelp.bas"
#Include once "RunMod00.bas"
#Include once "RunMod01.bas"
Note that all variables in Types.bi are Shared.
So, I thought I was looking for a statement to Dim Share MyMacro ?
But obviously there isn't one.
Regards