Compiling with Sun Studio
"ericbrunson" <[email protected]>
| Newsgroups | gmane.text.clearsilver.general |
|---|---|
| Message-ID | <[email protected]> |
I'm afraid my cpp kung fu is not powerful enough for this issue...
I'm trying to compile CS with Sun Studio 11's cc, we don't have gcc on
the box. I'm hitting the wall with the nerr_raise macro in neo_err.h:
#define nerr_raise(e,f,...) \
nerr_raisef(__PRETTY_FUNCTION__,__FILE__,__LINE__,e,f,__VA_ARGS__)
NEOERR *nerr_raisef (const char *func, const char *file, int lineno,
NERR_TYPE error, const char *fmt, ...);
The problem is, it doesn't seem to like it if there are no va_args...
if the macro is called with more than 2 arguments, it works, but the
calls that only have an error code and a string that requires no
additional parameters all fail similarly to this:
"cgi.c", line 583: warning: argument mismatch
"cgi.c", line 583: syntax error before or at: )
I thought I'd drop a note here to see if anyone knew an alternate
syntax while I continue honing my cpp skillz.
Thanks,
e.