Posted on 2008-04-23 18:03:28-07 by drb
ToolBox.h:92: error: syntax error before numeric constant
I am installing Perl Modules Bit::Vector v. 6.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 BitVector.h:16,from Vector.xs:34: ToolBox.h:92: error: syntax error before numeric constant make: *** [Vector.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". All others setting are by Config.pm. I compiled it with gcc 4.01. It may be that the module is pre-installed but I wasn't able to confirm this. When I enter "perl -MBit::Vector -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: 11294 | Write a response
Posted on 2009-08-13 15:19:10-07 by sb in response to 7738
Re: ToolBox.h:92: error: syntax error before numeric constant
You should use "perl -MBit::Vector=100 -e 1" to check for the availability of this (or similarly of any other) module; this will give an error message all the time (if the version number of the installed module is not higher than 100, as in this example - I usually just use "10") and will inform you which version is installed, if any. There are known issues with MacOS X and my module in previous versions. These should be fixed now. Please let me know if not.
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.