Hi,
That's great there is lots of development happening in subversion on cxxtools,
tntnet.
I try to compile a little tntnet web page (with tntnet subversion, this works
fine with tntnet 1.6.3)
<%pre>
class ServerSessionState {};
</%pre>
<%session scope="component">
ServerSessionState sss;
</%session>
<%cpp>
</%cpp><&subcomponent(sss_p = &sss) qparam&><%cpp>
</%cpp>
<%def subcomponent><%param>
ServerSessionState *sss_p;
</%param>
</%def>
like:
gmake
ecppc -m text/html -L comp_ptr.ecpp
CC -D_RWSTDDEBUG -D_RWSTD_NO_DEBUG_ITER -I/h/goanna/1/a_5.10_m64/c/include -g
-xs -mt -library=%none -xtarget=opteron -m64 -Kpic -features=tmplife -c
comp_ptr.cpp
"comp_ptr.cpp", line 52:
Warning:::_component_comp_ptr::subcomponent_type::operator() hides the virtual
function tnt::Component::operator()(tnt::HttpRequest&, tnt::HttpReply&,
tnt::QueryParams&, bool).
"comp_ptr.cpp", line 55: Warning:::_component_comp_ptr::operator() hides the
virtual function tnt::Component::operator()(tnt::HttpRequest&, tnt::HttpReply&,
tnt::QueryParams&, bool).
"comp_ptr.cpp", line 103: Error: Could not find a match for
tnt::Scope::put<tnt::Scope::T,
tnt::Scope::destroyPolicy<tnt::Scope::struct>>(const char[6],
cxxtools::SmartPtr<tnt::Object,
cxxtools::InternalRefCounted<cxxtools::objectType>,
cxxtools::DefaultDestroyPolicy<cxxtools::objectType>>) needed
in::_component_comp_ptr::operator()(tnt::HttpRequest&, tnt::HttpReply&,
tnt::QueryParams&).
1 Error(s) and 2 Warning(s) detected.
gmake: *** [comp_ptr.o] Error 1
It seems the code generated by ecppc no longer finds a match for
the tnt::Scope::put method, on the generated code for this line:
qparam.getScope().put("sss_p", tnt::createPointerObject( &sss));
A workaround is:
sed -i -e "s,tnt::createPointerObject,,g" comp_ptr.cpp
Thanks, Mark
--
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general