-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello list, I'm developing a multi-module MPASM project and have run into a bit of a problem. Say I have two modules, each requiring the use of a constant, 0xAA in this case. I could put | | constant testconst = 0xAA | or | |testconst equ 0xAA | in both files but this is obviously not very elegant or easy to maintain. I have tried to define the constant--using both methods above--and using GLOBAL and EXTERN statements to "share" the constant between modules as I would with variable and code labels. This causes MPASM to throw: "Duplicate label ("testconst" or redefining symbol that cannot be redefined)" I could put the testconst in a .inc file and include in both modules, but this seems like overkill just for the odd constant. Is there a proper way to do this? Thanks, Brendan - -- Brendan Gillatt | GPG Key: 0xBF6A0D94 brendan {a} brendangillatt (dot) co (dot) uk http://www.brendangillatt.co.uk -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFLmsXOHEhZ5Ws5poERAvC0AJ9a+BZarKdXjHjSDajTaI8bTH8AKQCeJh90 q4tk5LtCH/fgH1UgKEM5224= =9Js9 -----END PGP SIGNATURE----- -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist