Closed GoogleCodeExporter closed 9 years ago
I have the same problem when compiling in my Mandriva 2007:1 box. I've added
the "C"
to the declarations in the following files, after which it compiles:
./cutil/globals.h, line 46:extern "C" int optind; /*option index
*/
./cutil/globals.h, line 47:extern "C" char *optarg; /*option
argument */
./cutil/tordvars.h, line 48:extern "C" int display_ratings; /* Show the
ratings */
Compiler version:
$ g++ --version
g++ (GCC) 4.1.1 20060724 (prerelease) (4.1.1-3mdk)
Original comment by mats.car...@gmail.com
on 11 Apr 2007 at 8:20
Getopt is fixed by reanming the file. This is belt and braces over changing the
#include <getopt.h>, which was a mistake to #include "tessopt.h".
The change to display_ratings breaks the windows build, since it seems to make
the
definition C++, even with a C declaration.
Can anybody please tell me which system include on your OS declares
display_ratings
so I can decide whether I really have to rename the variable or I can work
around the
includes.
Original comment by theraysm...@gmail.com
on 17 May 2007 at 7:25
My system is: 2.6.19-1.2911.6.5.fc6 (Fedora 6)
The previous declaration is happening at tfacep.h:106.
../cutil/tordvars.h:49: error: previous declaration of ‘int
display_ratings’ with
‘C++’ linkage
tfacep.h:106: error: conflicts with new declaration with ‘C’ linkage
Original comment by rsrip...@gmail.com
on 23 May 2007 at 5:23
see issue #36, which i just submitted
Original comment by z23r...@gmail.com
on 16 Jun 2007 at 9:59
OK, so it wasn't fixed in 1.04, but is properly fixed in v2.0
Original comment by theraysm...@gmail.com
on 13 Jul 2007 at 1:49
Original comment by theraysm...@gmail.com
on 18 Jul 2007 at 10:24
Original issue reported on code.google.com by
tmb...@gmail.com
on 10 Apr 2007 at 11:48