This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: alloca and c++



> Further analysis revealed that usage of -ansi forces that error:
> 
> g++ -ansi main.cc --> error
> g++ -ansi -D_GNU_SOURCE main.cc --> ok
> 
> I need also to include stdlib.h as extern "C" to get the right symbols 
> working.

Perhaps we need a fix to "fixincludes".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]