Reza Mohazeb

CodeWarrior Options

Discussion created by Reza Mohazeb on Nov 8, 2011
Latest reply on Nov 9, 2011 by stanish

I am trying to use the folowing # define statement

//-------------------------------------

#idndef  _THISFILE_

#define  _THISFILE_

:

//some definitions here

:

#endif

//-----------------------------------

 and use this  header file in various  .C files, and to my surprise I get the "Multiple definition" error and I am wondering if there is any option in the IDE i have to setup? Could you please explain this and let me know about a possible workaround as well.

 

I also have problem with defining a structure as  "extern" while I have defined it as a  "typdef" of a structure in another file? the compiler complains about illigal definition of the extern!? is there any other way to define this with no error?

Thanks;

Outcomes