Re: GCC Compile errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



lakersfan74 <lakersfan74@xxxxxxx> writes:

> I have a simple c++ project and I get this weird compile error..I use GCC
> 4.3.2 in ubuntu 8.10
>
> /usr/include/assert.h:39:42: error: missing binary operator before token "("
>
> At assert.h it gives error on this line
>
> #if defined __cplusplus && __GNUC_PREREQ (2,95)
> # define __ASSERT_VOID_CAST static_cast<void>
> #else
> # define __ASSERT_VOID_CAST (void)
> #endif

This doesn't look like a problem with gcc to me.  It looks like a
problem with your header files.  The error mssage suggests __GNUC_PREREQ
has an unexpected definition.  It may help to run gcc -dD -E on your
source code to see how __GNUC_PREREQ is defined.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux