[GEM-dev] [PD-dev] compiling pd-extended for ubuntu 9.10

Hans-Christoph Steiner hans at at.or.at
Sat Oct 31 15:12:38 CET 2009


My fault, 'bool' is typedef'ed not #define'ed so you can't test it  
with a #ifndef.  I just discovered all this stuff is in the standard  
C99 header stdbool.h anyhow.  'svn up' externals/pdp/include' and try  
again.

.hc

On Oct 31, 2009, at 5:46 AM, patrick wrote:

> hi,
>
> i have this error when compiling pd-extended for ubuntu 9.10:
>
> make -C /home/psc/src/pd/externals/gem2pdp
> make[3]: Entering directory `/home/psc/src/pd/externals/gem2pdp'
> g++ -fPIC -DPD -O2 -funroll-loops -fomit-frame-pointer -ffast-math - 
> Wall -W -Wno-unused -Wno-parentheses -Wno-switch -DGEM2PDP_VERSION= 
> \"0.7\" -g -g -O2 -I/home/psc/src/pd/pd/src -I. -I/home/psc/src/pd/ 
> externals/pdp/include -I/home/psc/src/pd/Gem/src -o gem2pdp.o -c  
> gem2pdp.cpp
> In file included from /home/psc/src/pd/Gem/src/Base/CPPExtern.h:20,
> from /home/psc/src/pd/Gem/src/Base/GemBase.h:20,
> from gem2pdp.h:13,
> from gem2pdp.cpp:11:
> /home/psc/src/pd/Gem/src/Base/GemVersion.h:13: warning: type  
> qualifiers ignored on function return type
> In file included from /home/psc/src/pd/externals/pdp/include/pdp.h:41,
> from gem2pdp.h:15,
> from gem2pdp.cpp:11:
> /home/psc/src/pd/externals/pdp/include/pdp_types.h:50: error:  
> redeclaration of C++ built-in type ‘bool’
> make[3]: *** [gem2pdp.o] Error 1
> make[3]: Leaving directory `/home/psc/src/pd/externals/gem2pdp'
> make[2]: *** [gem2pdp] Error 2
> make[2]: Leaving directory `/home/psc/src/pd/externals'
> make[1]: *** [externals_install] Error 2
> make[1]: Leaving directory `/home/psc/src/pd/packages'
> make: *** [install] Error 2
>
> also i had to modified:
>
> char * extension = strrchr(filename, '.');
>
> for
> char * extension = strrchr(const_cast<char*>(filename), '.');
>
> as reported by ClaudiusMaximus
> http://www.mail-archive.com/gem-dev@iem.at/msg00236.html
>
> pat
>
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at iem.at
> http://lists.puredata.info/listinfo/pd-dev



----------------------------------------------------------------------------

Looking at things from a more basic level, you can come up with a more  
direct solution... It may sound small in theory, but it in practice,  
it can change entire economies.     - Amy Smith






More information about the GEM-dev mailing list