Hi KK, thank you for your prompt reply. Yes, I was adding an event handler (thanks for correcting me). I used the nox-new-c-app.py before creating an empty component, and it worked fine. I looked at switch.cc and realized that it was a matter of namespace. The problem was solved. Thanks. Best Regards. Happy New Year!
-- Ricardo Bennesby da Silva Ciência da Computação - UFAM LabCIA - Laboratório de Computação Inteligente e Autonômica 2010/12/29 kk yap <[email protected]> > Hi Ricardo, > > Before you adding an event handler ( which is different from adding events > in NOX ), did you run a component that does nothing? Try that. You can > create to a new component using nox-new-c-app.py if you are using zaku or > later. That component should just run. > > After which, you can look at switch.cc for an example of how to register an > event. That component should be simple enough for source-code reading. > > Let us know if you have other problems. > > Regards > KK > > On 29 December 2010 06:57, Ricardo Bennesby <[email protected]>wrote: > >> Hi all. >> I am writing a simple C++ component that prints a message for each packet >> that arrives at Nox, as an introduction to developing a C++ component. The >> component compiles without warnings, but an error occurs on execution: >> >> *'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::newcomp::handler(vigil::Event const&)' >> * >> I found a thread "Adding Events in Nox" that reported the same problem and >> I followed the steps described there, but the error persists. Does anyone >> have any suggestions to solve this? >> >> Regards. >> >> >> -- >> Ricardo Bennesby da Silva >> Ciência da Computação - UFAM >> LabCIA - Laboratório de Computação Inteligente e Autonômica >> >> >> _______________________________________________ >> nox-dev mailing list >> [email protected] >> http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org >> >> > -- Ricardo Bennesby da Silva Ciência da Computação - UFAM LabCIA - Laboratório de Computação Inteligente e Autonômica
_______________________________________________ nox-dev mailing list [email protected] http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
