Page 1 of 1

Mod5441x-FactoryApp

Posted: Tue Mar 29, 2016 1:36 pm
by SeeCwriter
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.

Re: Mod5441x-FactoryApp

Posted: Tue Mar 29, 2016 3:52 pm
by SeeCwriter
I changed the offending statements from 'J2' to 'Pins' and now it compiles. But if you look in Pins.h, there is this statement:

Code: Select all

if (!defined PK70 && !defined SB70LC && !defined NANO54415 && !defined SB800EX)
Since I'm compiling for the MOD5441x, I don't understand why the above statement is 'false'.

Re: Mod5441x-FactoryApp

Posted: Tue Mar 29, 2016 10:12 pm
by pbreed
Somehow your compiling for the wrong platform...

Re: Mod5441x-FactoryApp

Posted: Wed Mar 30, 2016 6:34 am
by SeeCwriter
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.

Re: Mod5441x-FactoryApp

Posted: Wed Mar 30, 2016 11:03 am
by SeeCwriter
I deleted the project and recreated it and now it compiles without error. I must have selected the wrong platform when I imported it.