This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
casting to a variable argument function pointer
- From: "Nicholas Hildenbrandt" <hldnbrnd at uiuc dot edu>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Mon, 7 Oct 2002 16:23:02 -0500
- Subject: casting to a variable argument function pointer
I am trying to declare a pointer to a variable argument function pointer and
cast to it, but gcc fails with he error:
ISO C requires a named argument before '...'
It compiles fine on suns cc compiler, but I need it to compile on Linux and
thus need gcc to work. I don't care if my code is ISO compliant I just need
it to compile. is there some really easy fix to make is ISO compliant or a
compiler switch for gcc so it won't complain. Hell I don't care if gcc
gives a warning as long as it compiles.
If I have a variable declared as:
signed char *a (...);
and then an statement like:
a = (signed char * (...))(strVariable);
Thanks,
Nick Hildenbrandt