* casting to a variable argument function pointer
@ 2002-10-07 14:23 Nicholas Hildenbrandt
2002-10-08 4:39 ` John Love-Jensen
0 siblings, 1 reply; 2+ messages in thread
From: Nicholas Hildenbrandt @ 2002-10-07 14:23 UTC (permalink / raw)
To: gcc-help
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-10-08 11:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-07 14:23 casting to a variable argument function pointer Nicholas Hildenbrandt
2002-10-08 4:39 ` John Love-Jensen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).