Ram Seshadri wrote:
Does the latest version of the GNU compiler support the use of include files to declare procedures and functions. When i put them in include files I get compiler errors of multiple declarations. Help would be much appreciated.
Include files are substituted textually, so you can do anything that would be valid when inserting their contents in place. E.g., forward declarations would work just fine (but probably be pointless or at least quite unusual to put in include files).
So I suppose you're talking about external declarations. They work, but under the same conditions that always apply to them in GPC. In particular you need to declare the linker name ("attribute name" or "external name", look in the archives for details when needed), as GPC allows the same Pascal name in different modules (conforming to EP and BP), so the Pascal name alone is not sufficient for matching external declarations.
So it can be done, but it's quite cumbersome. Unless you're bound by legacy compatibility requirements, modules (EP) or units (BP) are a more comfortable solution for modularity.
Frank