[ghemical-devel] Error when compiling ghemical-2.95 againt newest openbabel

Karol Langner karol.langner at kn.pl
Thu Nov 15 21:52:30 EST 2007


Hi,

 Due to changes in openbabel, ghemical-2.95 no longer compiles with 
the --enable-openbabel option. Here is the command that causes the error:

if 
g++ -DHAVE_CONFIG_H -I. -I. -I.   -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12   -I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0   -I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12   -I/home/langner/apps/openbabel/include/openbabel-2.0   -I/home/langner/apps/ghemical/include/ghemical -I/home/langner/apps/ghemical/include -I/home/langner/apps/mpqc/include -I/home/langner/apps/libint/include   -I/home/langner/apps/ghemical/include/oglappth    -g -O2 -MT 
filetrans.o -MD -MP -MF ".deps/filetrans.Tpo" \
          -c -o filetrans.o `test -f 'filetrans.cpp' || 
echo './'`filetrans.cpp; \
        then mv -f ".deps/filetrans.Tpo" ".deps/filetrans.Po"; \
        else rm -f ".deps/filetrans.Tpo"; exit 1; \
        fi
filetrans.cpp: In constructor ‘file_trans::file_trans()’:
filetrans.cpp:82: error: ‘Formatpos’ was not declared in this scope
filetrans.cpp:82: error: expected `;' before ‘pos’
filetrans.cpp:85: error: ‘GetNextFormat’ is not a member 
of ‘OpenBabel::OBConversion’
filetrans.cpp:85: error: ‘pos’ was not declared in this scope
make[3]: *** [filetrans.o] Error 1
make[3]: Leaving directory 
`/home/langner/apps/ghemical/source/ghemical-2.95/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/home/langner/apps/ghemical/source/ghemical-2.95/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/home/langner/apps/ghemical/source/ghemical-2.95/src'
make: *** [all-recursive] Error 1

I wonder if you plan to use openbabel>2.0.0 in the future?

Cheers,
Karol

-- 
written by Karol Langner
Thu Nov 15 21:43:11 EST 2007


More information about the ghemical-devel mailing list