Compiling svn rev 72 on Mandriva 2007.1 I encountered the some "previous
declaration of ‘char* optarg’ with ‘C++’ linkage"/"conflicts with
new declaration with ‘C’ linkage" type errors.
I (perhaps naively, I'm not an expert in this) commented out one of the
conflicting declarations until I got it to compile and successfully ran the
program on a test page.
The compiler is gcc-4.1.2-1mdv2007.1.
The changes I made were,
in cutil/globals.h...
//extern int optind; /*option index */
//extern char *optarg; /*option argument */
in ccmain/tfacep.h...
// extern int display_ratings;
in ccmain/control.cpp...
//extern "C" { extern int display_ratings; }
Nobody/Anonymous
None
None
Public
|
Date: 2008-04-03 09:04 Logged In: NO |
|
Date: 2007-11-12 21:37
|