Problem with importing files (includes)

BlitzMax Forums/BlitzMax Programming/Problem with importing files (includes)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Trying to use the import <file> so that I may take advantage of the whole project precompile thingy however:

Import "compiler.bmx"
Import "Stack_class.bmx"


Under the compiler.bmx I have defined type PCode

It works fine for everything in compiler.bmx, however when i try to use it in Stack_Class.BMX it shoots me an error saying that pcode is undefined.

Are there rules by which I can use import? Does the code not cross?

I tried definining it also in Stack_Class.BMX however then it gives me an error about pcode being a duplicate identifier.

Any thoughts?