This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
alloca and c++
- From: Devang Patel <dpatel at apple dot com>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 1 Feb 2002 10:59:26 -0800
- Subject: alloca and c++
Hello,
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 ?
[bardoli:/Volumes/Sandbox/Testing/gcc3]$ cat test_alloca.cc
#include <stdio.h>
void * alloca (size_t);
int main()
{
char *s = (char *) alloca (10);
return 0;
}
Thank you,
Devang