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++


Hi,

On Fri, 1 Feb 2002, Devang Patel wrote:

> Following gives me undefined  (not undeclared) 'alloca' error in C++.
> Is it expected ?
> Or am I suppose to use __builtin_alloca()  to get gcc-built-in alloca()
> in C++ source ?

alloca() requires <alloca.h>
Besides that:

> void * alloca (size_t);

You know about the difference of 'extern "C"' and not 'extern "C"', do
you?  Not that it would work in this case.


Ciao,
Michael.


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