Cannot find label globals_globals_XXX compiler error

There is some code for menu in module RoundMenu, and other classes are in module Calc.
I referenced RoundMenu like below

using RoundMenu as Rm;
module Calc {
class CalcMenuDataFactory extends Rm.RoundMenuDataFactory {

But while build get error "om.garmin.monkeybrains.asm.AssemblerException: Cannot find label globals_globals_RoundMenu_RoundMenuDataFactory" (RoundMenuDataFactory is present)
How can I fix it?
  • "roundMenu" isn't part of the CIQ SDK. Do you have another .mc file that defines it?
  • Yes, I have it in other .mc file. But it strange that compiler can't find it
  • Former Member
    Former Member over 10 years ago
    Right now the order the source files are passed to the compiler matters. I'm guessing the file which defines round menu is being passed after the file that is trying to use it. To make matters worse I think Eclipse orders the files alphabetically if you're using OSX and reverse alphabetically on Windows. If you try adding an "a" or "z" to the beginning of the file that defines round menu are you able to compile your app?

    You can reference what we had to do with the file names in the disc golf sample on GitHub (DiscGolfBehaviorDelegate.mc became zDiscGolfBehaviorDelegate.mc).