Mod5441x-FactoryApp

Discussion to talk about software related topics only.
Post Reply
SeeCwriter
Posts: 630
Joined: Mon May 12, 2008 10:55 am

Mod5441x-FactoryApp

Post 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.
SeeCwriter
Posts: 630
Joined: Mon May 12, 2008 10:55 am

Re: Mod5441x-FactoryApp

Post 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'.
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: Mod5441x-FactoryApp

Post by pbreed »

Somehow your compiling for the wrong platform...
SeeCwriter
Posts: 630
Joined: Mon May 12, 2008 10:55 am

Re: Mod5441x-FactoryApp

Post 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.
SeeCwriter
Posts: 630
Joined: Mon May 12, 2008 10:55 am

Re: Mod5441x-FactoryApp

Post 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.
Post Reply