patcharats / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
0 stars 0 forks source link

compile fails on Fedora 7: getopt linkage #38

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. unpack & run ./configure.

2. run "make"

What is the expected output?

A successful compile

What do you see instead?

partial results:

if g++ -DHAVE_CONFIG_H -I. -I. -I..  -I../ccstruct -I../ccutil -I../cutil
-I../classify -I../image -I../dict -I../viewer   -g -O2 -MT tface.o -MD -MP
-MF ".deps/tface.Tpo" -c -o tface.o tface.cpp; \
        then mv -f ".deps/tface.Tpo" ".deps/tface.Po"; else rm -f
".deps/tface.Tpo"; exit 1; fi
../cutil/globals.h:49: error: previous declaration of ‘char* optarg’ with
‘C++’ linkage
/usr/include/getopt.h:59: error: conflicts with new declaration with ‘C’
linkage
../cutil/globals.h:48: error: previous declaration of ‘int optind’ with
‘C++’ linkage
/usr/include/getopt.h:73: error: conflicts with new declaration with ‘C’
linkage

What version of the product are you using? On what operating system?

[ccurley@charlesc tesseract-1.04]$ ls ../tesseract-1.0* -d
../tesseract-1.03  ../tesseract-1.03.tar.gz  ../tesseract-1.04 
../tesseract-1.04b.tar.gz
[ccurley@charlesc tesseract-1.04]$ uname -a
Linux charlesc.localdomain 2.6.21-1.3228.fc7 #1 SMP Tue Jun 12 15:37:31 EDT
2007 i686 athlon i386 GNU/Linux

Please provide any additional information below.

Original issue reported on code.google.com by charles....@gmail.com on 26 Jun 2007 at 8:39

GoogleCodeExporter commented 9 years ago
This problem will be properly fixed in v2.0.

Original comment by theraysm...@gmail.com on 7 Jul 2007 at 1:09

GoogleCodeExporter commented 9 years ago

Original comment by theraysm...@gmail.com on 18 Jul 2007 at 10:41