The Tools Community is the best place for this question:

http://www.opensolaris.org/os/community/tools/

Cheers,
Jim

Petr Sobotka wrote:
> Hello Everyone,
> 
> I have strange problem with sstudio 12 and sstudio express (ceres)
> (stlport4 C++ library). Both has same issue with following code:
> 
> struct tcontrol_definition : public reference_counted_object
> {
> private:
>   tcontrol_definition();
> public:
> 
>   tcontrol_definition(const config& cfg);
> 
>   // This cause problems
>   template<class T>
>   void load_resolutions(const config::child_list& resolution_list);
> 
>   std::string id;
>   t_string description;
> 
>   std::vector<tresolution_definition_ptr> resolutions;
> 
> };
> 
> 
> CC -o build/release/multiplayer.o -c -library=stlport4
> -staticlib=stlport4 -norunpath -features=tmplife
> -features=tmplrefstatic -features=extensions -R/usr/lib -g0
> -D_GNU_SOURCE=1 -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> -DHAVE_CONFIG_H -D_X11 -I/usr/include/boost -I/usr/include/SDL
> -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0
> -I/usr/lib/glib-2.0/include -I/usr/include/freetype2
> -I/usr/include/libpng12 -I/usr/X11/include -I/usr/include/python2.4
> -I. -Isrc src/multiplayer.cpp
> "src/gui/widgets/settings.hpp", line 137: Error: Templates can only
> declare classes or functions.
> 
> Even if I change definition from struct to class I have same error :-(
> 
> Here you can view full sources:
> http://svn.gna.org/viewcvs/wesnoth/trunk/src/gui/widgets/settings.hpp?rev=31925&view=markup
> 
> I couldn't find correct mailing list for sstudio, so I send this
> emails to you as you could cross same issue when porting some
> open-source projects... ;-)
> 
> Cheers,
> Petr

_______________________________________________
tools-discuss mailing list
tools-discuss@opensolaris.org

Reply via email to