hi thomas and pd-list,
i have run into this error building py/pyext:
----
$ sh ../flext/build.sh pd gcc
make -f ../flext/buildsys/gnumake-sub.mak PLATFORM=lnx RTSYS=pd COMPILER=gcc BUILDPATH=../flext/buildsys/ PKGINFO=package.txt BUILDCLASS=ext USRCONFIG=config.txt USRMAKE=build/gnumake-lnx-gcc.inc TARGETMODE=release TARGETTYPE=multi THREADED=1 _build_
make[1]: Entering directory `/home/dmotd/pure-data/externals/grill/py'
mkdir -p pd-linux/release-multi/
g++ -c -msse -mfpmath=sse -ffast-math -O2 -march=prescott -pthread -fPIC -DPY_EXPORTS -DPY_NUMPY -DPY_USE_GIL -DNDEBUG -DFLEXT_THREADS -DFLEXT_SYS=2 -DPD -I/usr/include/python2.4 -I/home/dmotd/pure-data/pd/src -I/usr/local/include/stk -I/usr/local/include/SndObj/ -I/home/dmotd/pure-data/include/flext source/main.cpp -o pd-linux/release-multi/main.opp
source/main.h:32: error: expected class-name before ‘{’ token
/home/dmotd/pure-data/include/flext/flcontainers.h: In member function ‘void TypedFifo<T>::Put(T*) [with T = FifoEl]’:
source/pybase.h:179: instantiated from here
/home/dmotd/pure-data/include/flext/flcontainers.h:456: error: no matching function for call to ‘TypedFifo<FifoEl>::Put(FifoEl*)’
/home/dmotd/pure-data/include/flext/flcontainers.h:405: note: candidates are: void Fifo::Put(Lifo::Cell*)
/home/dmotd/pure-data/include/flext/flcontainers.h: In member function ‘T* TypedLifo<T>::Pop() [with T = FifoEl]’:
/home/dmotd/pure-data/include/flext/flcontainers.h:466: instantiated from ‘T* PooledFifo<T, M, O>::New() [with T = FifoEl, int M = 2, int O = 1]’
source/pybase.h:177: instantiated from here
/home/dmotd/pure-data/include/flext/flcontainers.h:380: error: invalid static_cast from type ‘Lifo::Cell*’ to type ‘FifoEl*’
make[1]: *** [pd-linux/release-multi/main.opp] Error 1
make[1]: Leaving directory `/home/dmotd/pure-data/externals/grill/py'
make: *** [build-release-multi] Error 2
----
this machine runs gentoo linux using python version 2.4.3,
gcc version 4.1.1, and cvs pd / flext / py - synced
yesterday! i have set "PY_NUMPY=1", numpy version 1.0.3.
i have previously built vasp and xsample using the same
flext build system, without problems.
thanks a lot,
dmotd.