This is the mail archive of the gcc-help@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]

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


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