problem with SWIG

shilitg at t2.technion.ac.il shilitg at t2.technion.ac.il
Sun May 21 14:39:09 EDT 2000


Hi,

I am trying to connect python to cpp files.
Our project contains lots of files, the main file is fdtd.cpp and it
calls functions in other files.
When I try to use swig I get errors:
~/code>swig -python -module fdtd fdtd.cpp
Generating wrappers for Python

~/code>gcc -c fdtd.cpp fdtd_wrap.c -I/usr/include/python1.5
and then I get errors like:

fdtd_wrap.c:1176: `_argc0' undeclared (first use in this function)
fdtd_wrap.c:1176: `_argc1' undeclared (first use in this function)
fdtd_wrap.c: In function `_wrap_write_binary':
fdtd_wrap.c:1218: `YeeCell' undeclared (first use in this function)
fdtd_wrap.c:1218: `_arg0' undeclared (first use in this function)
fdtd_wrap.c:1219: parse error before `char'

If you know how to solve or if you have an example of how you work with
more than 1 file with SWIG, please help!

Thanks,
Hilit


Sent via Deja.com http://www.deja.com/
Before you buy.



More information about the Python-list mailing list