slice #include and scope rules

in Help Center
Im not sure what Im doing wrong.
File1.ice
File2.ice
I get an error saying "Main::intOpt is not defined".
Anyone know what it is I'm missing? (im sure it will be trivial
)
Alfred
File1.ice
#ifndef FILE1_ICE #define FILE1_ICE module Main{ sequence<int> intOpt; }; #endif
File2.ice
#ifndef FILE2_ICE #define FILE2_ICE #include <File1.ice> module Main{ module Group1{ struct Pkt{ Main::intOpt num; }; }; }; #endif
I get an error saying "Main::intOpt is not defined".
Anyone know what it is I'm missing? (im sure it will be trivial

Alfred
0
Comments
and it compiles without error. Can you post the command line you are using? Also, what compiler (slice2cpp, slice2java, etc) are you using, and on what platform?
Cheers,
Michi.
Thank you for your help as it made look somewhere else and I found it.
Had nothing to do with scope at all.
It had all to do with my sloppy cut-and-paste, I had the same #ifndef on both files. i.e. #ifndef FILE1_ICE and in file2.ice had ALSO #ifndef FILE1_ICE
so the effect was that file1.ice was never parsed.
thanks again.