From: richard a. <ric...@ya...> - 2006-11-06 07:11:17
|
I'd like to get Open Babel Perl working on my system: amd64 Linux Mandriva 2007 svn trunk rev 1578 perl 5.8.8 Here's what I'm doing: (1) cd into scripts/perl (2) $ perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Chemistry::OpenBabel (3) $ make cp OpenBabel.pm blib/lib/Chemistry/OpenBabel.pm g++ -c -I../../src -fno-strict-aliasing -pipe -Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -DVERSION=\"1.2.0\" -DXS_VERSION=\"1.2.0\" -fPIC "-I/usr/lib/perl5/5.8.8/x86_64-linux/CORE" openbabel_perl.cpp cc1plus: warning: command line option "-Wdeclaration-after-statement" is valid for C/ObjC but not for C++ ../../src/residue.h:194: error: expected unqualified-id before void ../../src/residue.h:194: error: expected `)' before void ../../src/residue.h:194: error: expected `)' before void ../../src/residue.h:195: error: expected unqualified-id before void ../../src/residue.h:195: error: expected `)' before void ../../src/residue.h:195: error: expected `)' before void openbabel_perl.cpp: In function int _wrap_THR_get(SV*, MAGIC*): openbabel_perl.cpp:2838: error: expected unqualified-id before ( token make: *** [openbabel_perl.o] Error 1 I've had a look at residue.h:194 and it consists of this line: static const unsigned int THR = 5; This statement is flanked by about half a dozen others like it above and below that are not flagged. Any ideas? thanks, Rich ____________________________ Richard Apodaca Blog: http://depth-first.com ____________________________________________________________________________________ Sponsored Link Free Uniden 5.8GHz Phone System with Packet8 Internet Phone Service http://www.getpacket8.net/yahoo2 |