bug-ocrad
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-ocrad] Re: ocrad 0.4 on sparc solaris 8


From: Antonio Diaz
Subject: [Bug-ocrad] Re: ocrad 0.4 on sparc solaris 8
Date: Thu, 09 Oct 2003 00:40:53 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.4) Gecko/20030811

Hello Ignazio.

The problem is the compiler version. g++ 2.95 (well, libstdc++) defines 'isalpha', 'isupper', etc as macros. Ocrad defines the _functions_ 'ISO_8859_1::isalpha', 'ISO_8859_1::isupper', etc. But the preprocessor changes them to a very ugly thing before the compiler could see it.

Upgrading to gcc 3.x should solve your problem.

Another thing you can try is adding
#undef isalnum
#undef isalpha
#undef isupper
#undef toupper
at the begining of 'iso_8859_1.h'. It worked for me before I upgraded to gcc 3.2.2.

Best regards.
Antonio Diaz, GNU Ocrad author and maintainer.


address@hidden wrote:
I can't get compiled ocrad on my Solaris 8 box with gcc 2.95.2
This is the message error I get.

address@hidden:445] ocrad-0.4 ->make
g++ -Wall -W -O2 -c -o iso_8859_1.o iso_8859_1.cc
In file included from iso_8859_1.cc:20:
iso_8859_1.h:104: parse error before `+'
iso_8859_1.h:106: parse error before `+'
iso_8859_1.h:108: parse error before `+'
iso_8859_1.cc:129: parse error before `('
iso_8859_1.cc:135: parse error before `('
iso_8859_1.cc:141: parse error before `('
iso_8859_1.cc:143: ANSI C++ forbids declaration `ch' with no type
iso_8859_1.cc:143: implicit declaration of function `int base_letter(...)'
iso_8859_1.cc:144: parse error before `return'
iso_8859_1.cc: In function `static bool ISO_8859_1::isvowel(unsigned char)':
iso_8859_1.cc:152: parse error before `('
iso_8859_1.cc:156: confused by earlier errors, bailing out
make: *** [iso_8859_1.o] Error 1

Where is the problem?.

Best regards.

Ignazio Testoni





reply via email to

[Prev in Thread] Current Thread [Next in Thread]