EZ80 help with error needed

Dec 13, 2003 2 Replies

i am experiencing the followig error and warning , and trying to get my head round it could someone clarify please where i am going wrong



using ZTP 1.1



thanks all Dave



i am stuck ! could anyone please give a better explaination of this error



ERROR (128) Identifier "gprsconfiguration" not defined within current scope the line is question is gprs_network = &gprsconfiguration->gprs_net[i];



defined with #define extern struct gprsconf *gprsconfiguration;



also



WARNING (197) No function prototype "fprintf" in scope i presume these are ok , but could do with any clarification as to how to clear them



the offending line is fprintf(CONSOLE,"SYSCONFIG:\tFound matching GPRS Operator\r\n");


this causes the keyword "extern" to be replaced by "struct gprsconf

*gprsconfiguration;" by the preprocessor if it works at all. drop the #define to declare your pointer.

cheers, Alf,

formatting link

Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.550 / Virus Database: 342 - Release Date: 9/12/2003

On Sat, 13 Dec 2003 08:53:19 -0000, "David Armstrog" wrote in comp.arch.embedded:

As somebody else already said, drop the #define from this line.

Also, there must be a definition of the structure type in scope, that is one that describes all the members of the structure.

Include the proper header containing the prototype. For fprintf(), that is

Jack Klein Home: http://JK-Technology.Com FAQs for comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html comp.lang.c++ http://www.parashift.com/c++-faq-lite/alt.comp.lang.learn.c-c++ ftp://snurse-l.org/pub/acllc-c++/faq

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required