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]

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


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