Re: [pygccxml-development] errors with global
Brought to you by:
mbaas,
roman_yakovenko
From: Roman Y. <rom...@gm...> - 2007-03-05 14:17:45
|
On 3/5/07, Neal Becker <ndb...@gm...> wrote: > This code has lots of problems: > > test.h: > ----------------------------------- > #include <boost/shared_ptr.hpp> > > struct A { > virtual void doit () = 0; > }; > > struct B : public A { > virtual void doit (); > }; > > > struct C { > C (boost::shared_ptr<A> _a) : > a (_a) {} > > void doit() { a->doit(); } > > boost::shared_ptr<A> a; > }; > > B the_b; > > INFO gccxml > cmd: /usr/bin/gccxml -I"/home/nbecker/tmp" -I"/home/nbecker/tmp" "/home/nbecker/tmp/test.h" -fxml="/tmp/tmpoHXDYR.xml" > > WARNING: boost::shared_ptr<A> [class] > > warning W1040: The declaration is unexposed, but there are other > > declarations, which refer to it. This could cause "no to_python > > converter found" run time error. Declarations: > > C::C(boost::shared_ptr<A> _a) [constructor] C::a [variable] > > INFO: file "test.cpp" - updated( 0.000000 seconds ) > g++ -o test.os -c -fPIC -I/usr/local/src/boost.hg -I/usr/include/python2.4 > test.cpp > test.cpp: In function 'void init_module_test()': > test.cpp:88: error: expected `)' before '.' token > test.cpp:92: error: '_GLOBAL__I__home_nbecker_tmp_test' was not declared in > this scope > test.cpp:92: error: '::_GLOBAL__I__home_nbecker_tmp_test' has not been > declared > scons: *** [test.os] Error 1 > fixed, thank you for reporting this. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |