From: <joe...@gr...> - 2006-02-28 20:10:44
|
hello,=20 maybe this is a trivial problem for you, at least i hope so and you can=20 help me.=20 =20 a header file of me contains the definition of an array of function=20 pointers, just like this:=20 =20 typedef void (*somehandler)(void);=20=20 extern somehandler __redirtab[];=20 =20 the declaration is done in a c-file in the following manner:=20 =20 somehandler __redirtab[] =3D {=20 NULL,=20=20=20=20=20=20=20=20 };=20 =20 of course the header file is included in the c-file.=20 about what is the sdcc complaining as it tells me:=20 =20 <c-file> "extern definition for '__redirtab' mismatches with=20 declaration.=20 <header file>line x: previously defined here=20 =20 ?=20 doing the same with gcc prints nothing (-Wall and -pedantic enabled).=20 i did not have much experience dealing with function pointers, maybe i'm=20 doing something wrong.=20 =20 thanks a lot, have a nice week=20 bye joerg=20 =20 =20 --=20 ___________________________________________ Graffiti.net free e-mail @ www.graffiti.net Play 100s of games for FREE! http://games.graffiti.net/ Powered By Outblaze |