Share

Tesseract OCR

Tracker: Bugs

5 c/c++ extern conflict issues on Mandriva 2007.1 - ID: 1741758
Last Update: Comment added ( nobody )

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; }


Simon Blandford ( sblandford ) - 2007-06-22 16:40

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2008-04-03 09:04
Sender: nobody

Logged In: NO

I use Fedora 8. Tried the same. Commented out and compiled it
successfully. But tesseract doesn't recognize the phototest.tif !


Date: 2007-11-12 21:37
Sender: dglenn99


Using this information, it compiles on Suse 10.3, but fails to convert the
phototest.tif


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.