2009-11-16 02:49:13     compilation issue

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-11-16 02:49:13     compilation issue

Rajesh R (INDIA)

Message: 82383   

 

Dear All,

 

We have added some CPP files to our project and we got the following compilation issue,

 

/opt/uClinuxR08/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/include/c++/bits/cpp_type_traits.h:222: error: redefinition of âstruct std::__is_integer<int>â

/opt/uClinuxR08/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.1.2/include/c++/bits/cpp_type_traits.h:172: error: previous definition of âstruct std::__is_integer<int>â

 

We are using 2008R1.5 distribution and toolchain for our development purpose.

 

Regards,

 

R Rajesh

QuoteReplyEditDelete

 

 

2009-11-16 21:56:49     Re: compilation issue

Mike Frysinger (UNITED STATES)

Message: 82423   

 

looks like your code is doing something dumb like:

#define bool int

 

hard to say though without any example code that shows the problem

QuoteReplyEditDelete

 

 

2009-11-18 01:10:06     Re: compilation issue

Rajesh R (INDIA)

Message: 82467   

 

Hi Mike,

 

Thanks for your help...it works...

 

Unfortunately  we have added a common header file, in that we had that knid of define...

 

When we have added that header file to CPP file it creates that issue...

 

Regards,

 

R Rajesh

Attachments

    Outcomes