Glib 1.3 and Digital UNIX



Hi,
I have a little problem with the newest header file glib.h.
When I use glib.h in c++ context I get following error message:

cxx: Error: ../glib.h, line 355: more than one instance of overloaded
          function "alloca" has "C" linkage
void *alloca ();
------^
cxx: Info: 1 error detected in the compilation of "test.cpp".

Thats because alloca is a function under Digital Unix and not a macro I
think.

alloca.h :

extern void *alloca(int);
#pragma intrinsic(alloca)

I hope you can help.
Thanks Bernd








[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]