alloca and c++

Michael Matz matzmich@cs.tu-berlin.de
Fri Feb 1 12:12:00 GMT 2002


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.



More information about the Gcc mailing list