strk writes: > On Fri, Mar 23, 2007 at 09:01:17PM +0530, Praveen A wrote: >> 2007/3/22, strk <[EMAIL PROTECTED]>: >> >Does including "ref_counted.h" from "smart_ptr.h" fixes it ? >> >--strk; >> >> Nopes. It still gives the same error. > > What about including it from fn_call.h ?
This bit, stolen from neighboring with_stack_entry.h, fixes it for me. This probably has something to do with the ref_counted.h and smart_ptr.h include order in the newly included files. I got tired of twiddling them around once I'd found this fix. :) --- server/vm/fn_call.h.orig Thu Mar 29 11:51:54 2007 +++ server/vm/fn_call.h Thu Mar 29 12:11:50 2007 @@ -27,6 +27,9 @@ #include "as_environment.h" // for inlines (arg) +#include "as_object.h" // for dtor visibility by boost::intrusive_ptr +#include "smart_ptr.h" + #include <cassert> // for inlines (arg) #include <ostream> // for inlines (dump_args) I am on to bigger and meaner-looking errors which may be related: ccache c++ -DHAVE_CONFIG_H -I. -I. -I.. -I../backend -I../server/swf -I../server/asobj -I../server/parser -I../libltdl -I../server/vm -I../libbase -I../libgeometry -I.. -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/gstreamer-0.10 -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include/gstreamer-0.10 -pthread -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/local/include/libxml2 -I/usr/local/include -I/usr/local/include -I/usr/X11R6/include -g -O2 -pipe -g -O0 -pg -Wall -pthread -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -MT button_character_instance.lo -MD -MP -MF .deps/button_character_instance.Tpo -c button_character_instance.cpp -fPIC -DPIC -o .libs/button_character_instance.o button_character_instance.cpp: In function `void gnash::attachButtonInterface(gnash::as_object&)': button_character_instance.cpp:226: error: invalid conversion from `void (*)(const gnash::fn_call&)' to `gnash::as_value (*)(const gnash::fn_call&)' button_character_instance.cpp:226: error: initializing argument 1 of ` gnash::builtin_function::builtin_function(gnash::as_value (*)(const gnash::fn_call&), gnash::as_object*)' button_character_instance.cpp: At global scope: button_character_instance.cpp:282: error: prototype for `gnash::as_value gnash::button_character_instance::enabled_getset(const gnash::fn_call&)' does not match any in class `gnash::button_character_instance' button_character_instance.h:130: error: candidate is: static void gnash::button_character_instance::enabled_getset(const gnash::fn_call&) button_character_instance.cpp:282: error: `gnash::as_value gnash::button_character_instance::enabled_getset(const gnash::fn_call&)' and `static void gnash::button_character_instance::enabled_getset(const gnash::fn_call&)' cannot be overloaded gmake[3]: *** [button_character_instance.lo] Error 1 gmake[3]: Leaving directory `/usr/ports/mystuff/www/gnash/w-gnash-snapshot-20070329/gnash/server' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/usr/ports/mystuff/www/gnash/w-gnash-snapshot-20070329/gnash/server' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/mystuff/www/gnash/w-gnash-snapshot-20070329/gnash' gmake: *** [all] Error 2 *** Error code 2 _______________________________________________ Gnash mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnash
