hello,
since i'm on ubuntu brezy, (using gcc 4.0 by default) i'm not able to compile msd anymore...
the error is :
cyrille@nusmuk:~/pd/externals/nusmuk/msd$ bash ../../grill/flext/build.sh pd gcc make -f ../../grill/flext/buildsys/gnumake-sub.mak PLATFORM=lnx RTSYS=pd COMPILER=gcc BUILDPATH=../../grill/flext/buildsys/ PKGINFO=package.txt BUILDCLASS=ext TARGETMODE=release TARGETTYPE=single _build_ make[1]: entrant dans le répertoire « /home/cyrille/pd/externals/nusmuk/msd » g++ -c -msse -mfpmath=sse -ffast-math -DNDEBUG -O3 -march=pentium4 -pthread -fPIC -DFLEXT_SYS=2 -I/home/cyrille/pd/pd-0.39-1test1//src -I/usr/local/include/flext main.cpp -o pd-linux/release-single/main.opp main.cpp:3: erreur: explicit specialization of ‘flext_obj* msdN<1>::__init__(int, t_atom*)’ must be introduced by ‘template <>’ main.cpp:3: erreur: template-id ‘__init__<>’ for ‘flext_obj* msdN<1>::__init__(int, t_atom*)’ does not match any template declaration main.cpp:3: erreur: déclaration de fonction invalide make[1]: *** [pd-linux/release-single/main.opp] Erreur 1 make[1]: quittant le répertoire « /home/cyrille/pd/externals/nusmuk/msd » make: *** [build-release-single] Erreur 2
any idea?
thanks Cyrille
hi cyrille, hi nicolas,
since i'm on ubuntu brezy, (using gcc 4.0 by default) i'm not able to compile msd anymore...
this seems to be the same problem, that i had with gcc-3.4 ...
the recent versions of gcc are much stricter following the c++ standard, than the previous versions ...
cheers ... tim
On Sun, 20 Nov 2005, cyrille henry wrote:
since i'm on ubuntu brezy, (using gcc 4.0 by default) i'm not able to compile msd anymore... main.cpp:3: erreur: explicit specialization of 'flext_obj* msdN<1>::__init__(int, t_atom*)' must be introduced by 'template <>' main.cpp:3: erreur: template-id '__init__<>' for 'flext_obj* msdN<1>::__init__(int, t_atom*)' does not match any template declaration main.cpp:3: erreur: déclaration de fonction invalide
Just do what the error message tells you to do. Insert "template <>" at the beginning of the declaration and/or definition.
I've had similar problems a while ago trying to compile GridFlow with newer GCC's. The fix was as easy as just that.
____________________________________________________________________ Mathieu Bouchard - tél:+1.514.383.3801 - http://artengine.ca/matju Freelance Digital Arts Engineer, Montréal QC Canada