Hi,
I changed the __VA_ARGS__ to "_GNUC_" kind of format in misc.h,
statusbar.h and status_page.h and it compiled for me. Thanks for your
response.
/*
#define write_to_logfile(...) if(1==1){gchar*
statmsgstr;statmsgstr=g_strdup_printf(__VA_ARGS__);write_to_logfile_real(statmsgstr);g_free(statmsgstr);}
*/
/* Updated above line to following */
#define write_to_logfile(format...) if(1==1){gchar*
statmsgstr;statmsgstr=g_strdup_printf(format);write_to_logfile_real(statmsgstr);g_free(statmsgstr);}
Thanks.
KV.
>>While compiling ed2k_gui-0.4.0 I am getting following error.
>>Could someone hint me of how to solve this?
>>
>>system details: Linux (Redhat) 2.2.14-6.1.1 i686
>>
>>misc.h:100: warning: invalid character in macro parameter name
>>misc.h:100: badly punctuated parameter list in `#define'
>>status_page.h:34: warning: invalid character in macro parameter name
>>status_page.h:34: badly punctuated parameter list in `#define'
>>
>>
>
>
>I think the problem is that you have an old system/compiler/preprocessor that
>is not able to handle macros with variable arguments (the '...' in the
>offending lines).
>
>This is fixed in CVS though, so the CVS version should compile.
>
>
|