When I compile the MOD5441x Factory App example program (unchanged) I get errors about 'J2' not declared in this scope in file webfuncs.cpp.
And the compiler is right. There is no J2 declaration in any of the files for this example.
Is an include file missing?
I'm using v2.7.5.
Mod5441x-FactoryApp
-
- Posts: 630
- Joined: Mon May 12, 2008 10:55 am
Re: Mod5441x-FactoryApp
I changed the offending statements from 'J2' to 'Pins' and now it compiles. But if you look in Pins.h, there is this statement:
Since I'm compiling for the MOD5441x, I don't understand why the above statement is 'false'.
Code: Select all
if (!defined PK70 && !defined SB70LC && !defined NANO54415 && !defined SB800EX)
Re: Mod5441x-FactoryApp
Somehow your compiling for the wrong platform...
-
- Posts: 630
- Joined: Mon May 12, 2008 10:55 am
Re: Mod5441x-FactoryApp
That would seem to be the case. But when I look at the compiler output, I see MOD5441X in the invocation strings, which would suggest it's compiling for the right module.
Looking through the source code I don't see where the module type gets set. I think the makefiles set the module type, but I don't believe Eclipse uses makefiles. So I'm at a loss as to how to correct it.
Looking through the source code I don't see where the module type gets set. I think the makefiles set the module type, but I don't believe Eclipse uses makefiles. So I'm at a loss as to how to correct it.
-
- Posts: 630
- Joined: Mon May 12, 2008 10:55 am
Re: Mod5441x-FactoryApp
I deleted the project and recreated it and now it compiles without error. I must have selected the wrong platform when I imported it.