ocrad 0.15 won't build (Panther)

Ed Ravin eravin at panix.com
Sat Feb 3 08:42:55 PST 2007

I'm using OS X 10.3.9, gcc (GCC) 3.3 20030304 (Apple Computer, Inc.  build 1666)

I was unable to get ocrad built with ports - when I downloaded the
next version (0.16) directly GNU-land, it built without any complaints.

root# port install ocrad
--->  Fetching ocrad
--->  Attempting to fetch ocrad-0.15.tar.bz2 from
--->  Verifying checksum(s) for ocrad
--->  Extracting ocrad
--->  Configuring ocrad
--->  Building ocrad with target all
Error: Target com.apple.build returned: shell command "cd
&& make all" returned error 2
Command output: g++  -Wall -W -O2 -c -o common.o common.cc
g++  -Wall -W -O2 -c -o rational.o rational.cc
rational.cc: In member function `const char* Rational::to_decimal(int, int)
rational.cc:212: error: `snprintf' undeclared in namespace `std'
make: *** [rational.o] Error 1

More information about the macports-users mailing list