[gmx-users] swig compilation error
David van der Spoel
spoel at xray.bmc.uu.se
Fri Nov 3 22:11:11 CET 2006
Martin Höfling wrote:
> I try to compile an interface for gromacs libraries via swig
>
> LC_ALL="en.GB" gcc -I/usr/include/gromacs -I/usr/include/python2.4
> xtcio_wrap.c
> xtcio_wrap.c: In function 'SWIG_AsVal_bool':
> xtcio_wrap.c:2713: error: 'true' undeclared (first use in this function)
> xtcio_wrap.c:2713: error: (Each undeclared identifier is reported only once
> xtcio_wrap.c:2713: error: for each function it appears in.)
> xtcio_wrap.c:2716: error: 'false' undeclared (first use in this function)
> xtcio_wrap.c: In function '_wrap_read_first_xtc':
> xtcio_wrap.c:2852: error: incompatible types in assignment
> xtcio_wrap.c: In function '_wrap_read_next_xtc':
> xtcio_wrap.c:2943: error: incompatible types in assignment
> xtcio_wrap.c: In function '_wrap_write_xtc':
> xtcio_wrap.c:3036: error: incompatible types in assignment
>
> Any ideas what could be wrong?
>
> I already have written an interface for reading xtc files via ctypes, but swig
> should handle structs easier and can generate interfaces for java, perl,
> python and others...
>
First, this is more a developers question.
Have you checked the C code generated by the program? Some of the
GROMACS code unfortunately is rather ugly and maybe swig has made an
error, although not defining true and false seems a tad too basic an error.
--
David.
________________________________________________________________________
David van der Spoel, PhD, Assoc. Prof., Molecular Biophysics group,
Dept. of Cell and Molecular Biology, Uppsala University.
Husargatan 3, Box 596, 75124 Uppsala, Sweden
phone: 46 18 471 4205 fax: 46 18 511 755
spoel at xray.bmc.uu.se spoel at gromacs.org http://folding.bmc.uu.se
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
More information about the gromacs.org_gmx-users
mailing list