Posted on 2008-04-23 17:56:40-07 by drb
ToolBox.h:92: error: syntax error before numeric constant
I am manually installing Perl Module Date::Calc v. 5.4 on an Intel Mac with OS X 10.5.2 (Leopard) operating systems and Perl 5.8.8. All the prerequisites were successfully loaded: Test::Simple v. 0.80, Carp::Clan v. 6.00, Test::Exception v. 0.27, and Sub::Uplevel v. 0.1901. I get the error: "In file included from DateCalc.h:19, from Calc.xs:34: ToolBox.h:92: error: syntax error before numeric constant make: *** [Calc.o] Error 1" I couldn't find any help with Google. The only similar problem was http://www.nntp.perl.org/group/perl.cpan.testers/2007/11/msg800449.html but no solution was included. The only change I made was to setenv ARCHFLAGS "-arch x86_64"--everything else mirrors my Config.pm. I am using the same installer "/usr/bin/cc", which points to gcc 4.0.1. It may be that the module is pre-installed but I wasn't able to confirm this. When I enter "perl -MDate::Calc -e 1, I get no error message. However, it is not listed in "perldoc perllocal." Any suggestions would be greatly appreciated! Debra Baker, University of Maryland
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.