[gmx-users] swig compilation error

Martin Höfling martin.hoefling at gmx.de
Fri Nov 3 15:44:42 CET 2006


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...

Cheers
        Martin

-- 
Wenn Theorie und Realität nicht übereinstimmen, muß entweder die
Theorie oder die Realität geändert werden. Das erste nennt man
Wissenschaft, das zweite Religion. [Achim Stoesser, 12.8.1999]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xtcio.py.zip
Type: application/x-zip
Size: 756 bytes
Desc: not available
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-users/attachments/20061103/85de04f0/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xtcio.i
Type: text/x-csrc
Size: 185 bytes
Desc: not available
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-users/attachments/20061103/85de04f0/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xtcio_wrap.c.zip
Type: application/x-zip
Size: 24480 bytes
Desc: not available
URL: <http://maillist.sys.kth.se/pipermail/gromacs.org_gmx-users/attachments/20061103/85de04f0/attachment-0002.bin>


More information about the gromacs.org_gmx-users mailing list