IGlass GUI for blitzmax - V

BlitzMax Forums/BlitzMax Programming/IGlass GUI for blitzmax - V

Hi, just bought IGlass. Excellent GUI! (using WinXP)

I am trying to encapsulate a simple game in types (classes) and have have an issue(I think!). I am using Iglass to provide buttons/controls within a non-windowed GUI.

I have created Types for Game Control, Menu and now Level Selection. Each Type is store in its own source file.

Both the level and menu source use IGlass and so I have included "Inc_IGlass.bmx". Everything was OK when I just had a menu, once I added the source for Level selector the compile fails with:-

"Compiling:gamecontrol.bmx
[ERROR]: Compile Error: Duplicate identifier 'IGL_Widget'
[ERROR]: [.bmx/Level.Bmx.debug.win32.i;31;1]"

It seems not to like including the file in 2 differnt source files within the same project.

Any one found a way around this?