Hello Gary-- > > I am trying to generate a swig wrapper for a c++ class using the > following command line (I am doing this outside xplor currently)
It's much simpler if you do it within the Xplor-NIH build system, or outside of it. Doing it halfway like this is quite painful. > > swig -python -classptr -c++ -keyword -shadow -I/usr/include/python2.7 > -I/home/garyt/programs/xplor-nih/2.31.0/CDSlib > -I/home/garyt/programs/xplor-nih/2.31.0/common > -I/home/garyt/programs/xplor-nih/2.31.0/intVar > -I/home/garyt/programs/xplor-nih/2.31.0/nmrPot > -I/home/garyt/programs/xplor-nih/2.31.0/vmd > -I/home/garyt/programs/xplor-nih/2.31.0/surfD > -I/home/garyt/programs/xplor-nih/2.31.0/cminpack > -I/home/garyt/programs/xplor-nih/2.31.0/sparta > -I/home/garyt/programs/xplor-nih/2.31.0/devel > -I/home/garyt/programs/xplor-nih/2.31.0/fortlib > -I. -I/home/garyt/programs/xplor-nih/2.31.0/python -o > pyEnsemblePotProxy_wrap.cpp pyEnsemblePotProxy.i > > > > gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall > pyEnsemblePotProxy_wrap.cpp:4164:11: error: ?SWIGPY_POINTER_EXCEPTION? > was not declared in this scope something must have been included from the Xplor-NIH python path which causes this. > > > I presume the problem is that I need to do > > 1. sed 's/SWIG_/SWIGPY_/g' pyEnsemblePotProxy_wrap.cpp > > 2. ~/programs/xplor-nih/2.31.0/bin/includeCC > > 3. c++ -c pyEnsemblePotProxy_wrap_new_2.cpp -DX_MMAP_FLAGS=0 > > are these all the step I need to do? This looks right, but if you have any more problems I really suggest you use the Xplor-NIH build system. > > nb swig -version gives me > > > SWIG Version 2.0.4 that's a blessed version of swig. best regards-- Charles
