[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using STL containers in PDP++



These errors indicate that maketa did not succeed, and the problems
are in the Environment classes so it looks like your <map> include
broke the maketa scan.  This is highly plausible, as maketa does not
handle the fancy template stuff in STL.  I suggest you add #ifndef
__MAKETA__ around the code involving this <map> and that should fix
it.  However, your <map> related code will not be accessible from the
script or gui (as these depend on maketa information).  Someday maketa
needs to be upgraded to handle these stl templates..

Martin =?iso-8859-15?q?Schaff=F6ner?= <schaffoe@ipe.et.uni-magdeburg.de> writes:
> I am trying to add my own Environment to PDP++ for which I need something like 
> a map. Being used to STL, I included <map> in enviro_extra.h, but get errors 
> when making world, like this:
> 
> Compiling:  pdp_TA.cc on ko-pc15 in directory /usr/local/pdp++/src/pdp/LINUX 
> in directory /usr/local/pdp++/src/pdp/LINUX at Fre Nov 14 13:42:38 CET 2003
> g++ -fPIC -fno-implicit-templates -fno-exceptions -o pdp_TA.o 
> -I/home/schaffoe/work/htk/HTKLib -I./src_include -I./src_include/pdp 
> -I/usr/local/pdp++/include/LINUX -I/usr/local/iv/include     
> -DHAVE_POSIX_SIGNALS=1 -DRETSIGTYPE=void -DLINUX  -c pdp_TA.cc
> In file included from pdp_TA.cc:24:
> src_include/pdp/enviro_extra.h: In member function `virtual void
>    InteractiveScriptEnv::UnSafeCopy(taBase*)':
> src_include/pdp/enviro_extra.h:98: `TA_InteractiveScriptEnv' undeclared (first
>    use this function)
> src_include/pdp/enviro_extra.h:98: (Each undeclared identifier is reported 
> only
>    once for each function it appears in.)
> src_include/pdp/enviro_extra.h: In member function `virtual void
>    FreqEvent::UnSafeCopy(taBase*)':
> src_include/pdp/enviro_extra.h:115: `TA_FreqEvent' undeclared (first use this
>    function)
> src_include/pdp/enviro_extra.h: In member function `virtual void
>    FreqEvent_MGroup::UnSafeCopy(taBase*)':
> src_include/pdp/enviro_extra.h:137: `TA_FreqEvent_MGroup' undeclared (first 
> use
>    this function)
> src_include/pdp/enviro_extra.h: In member function `virtual void
>    FreqEnv::UnSafeCopy(taBase*)':
> src_include/pdp/enviro_extra.h:178: `TA_FreqEnv' undeclared (first use this
>    function)
> 
> and a few more like this.
> 
> So, is it impossible to use STL-containers in PDP++ code? Or, how do I prevent 
> these error messages?
> 
> Regards,
> -- 
> Martin Schafföner
> 
> Cognitive Systems Group, Institute of Electronics, Signal Processing and 
> Communication Technologies, Department of Electrical Engineering, 
> Otto-von-Guericke University Magdeburg
> Phone: +49 391 6720063

				- Randy