Hi, I am writing a component in C++ that uses a timer.
In the .hh file I put:
*Timer post(const Timer_Callback&, const timeval& duration) const;
Disposition handle_datapath_join(const Event& e);*
And in the .cc file there is a post that calls a timer method:
*#include "timeval.hh"
#include "timer-dispatcher.hh"*
* Disposition newcomp::handle_datapath_join(const Event& e) {
timeval tv={1,0};
post(boost::bind(&newcomp::timer,this), tv);
return CONTINUE;
}
*
And the timer method:*
void newcomp::timer() {
lg.dbg("One second has passed...\n");
}
*
It compiles normally but when I tried to execute it, I got the following
message:
*00043|nox|ERR:Cannot change the state of 'newcomp' to INSTALLED:
'newcomp' ran into an error:
Can't open a dynamic library: 'nox/netapps/newcomp/newcomp.so: cannot
open shared object file: No such file or directory' or
'nox/netapps/newcomp/.libs/newcomp.so: undefined symbol:
vigil::applications::newcomp::post(boost::function<void ()()> const&,
timeval const&) const'
*Any suggestions to solve this problems?
Best Regards.*
*
--
Ricardo Bennesby da Silva
Ciência da Computação - UFAM
LabCIA - Laboratório de Computação Inteligente e Autônoma
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org