Sounds like this oughtta work. (Whether it's a good design or not is for another day.) There are all kinds of "circular references" in common code. Can you include some code and some error messages? Code fragments --- just where things are declared and referenced --- are probably enough. Are you using an
IDE or compiling from the command line?