Hi Paulo, It would help that flow_fetcher_app is actually defined like the rest of the components in NOX---with prototype in header file. Anyway, the details are for you to figure out, since I would also only know if I try to do the clean up.
Regards KK On 18 January 2011 06:32, Paulo César <pcd...@gmail.com> wrote: > Hi, > I came back to this issue today. Please, can you tell me what have to be > done to clean up flow fetcher? > Sorry to bother. > Thanks. > > 2011/1/11 Paulo César <pcd...@gmail.com> >> >> Thanks. >> >> 2011/1/11 kk yap <yap...@stanford.edu> >>> >>> Hi Paulo, >>> >>> I looked at flow_fetcher more carefully and found that >>> Flow_fetcher_app is only defined as in flow_fetcher.cc. In fact, it >>> is a class in flow_fetcher.hh and a struct in flow_fetcher.cc. >>> Cleaning up flow_fetcher will take more time than I have at hand. If >>> anyone can chip in, please do. >>> >>> Regards >>> KK >>> >>> On 11 January 2011 13:19, Paulo César <pcd...@gmail.com> wrote: >>> > Hi, thanks for reply. >>> > >>> > I did the modifications that you recommended and follow the steps >>> > described >>> > in Developing in NOX tutorial. >>> > I also looked at other components(i.e. routing.cc, messennger.cc) and >>> > tried >>> > to make the communication between components like they do >>> > (resolve(component) in configure) but the following error is raised in >>> > compilation: >>> > >>> >> ../../../../../src/nox/component.hh: In member function ‘void >>> >> vigil::container::Component::resolve(T*&) const [with T = >>> >> vigil::applications::Flow_fetcher_app]’: >>> >> ../../../../../src/nox/netapps/newcomp/newcomp.cc:38: instantiated >>> >> from >>> >> here >>> >> ../../../../../src/nox/component.hh:111: error: incomplete type >>> >> ‘vigil::applications::Flow_fetcher_app’ used in nested name specifier >>> > >>> > I am declaring: >>> >> >>> >> Flow_fetcher_app *ffa >>> > >>> > Is that correct? >>> > >>> > Thanks. >>> > >>> > Best regards. >>> > >>> > >>> > >>> > 2011/1/7 kk yap <yap...@stanford.edu> >>> >> >>> >> Hi Paulo, >>> >> >>> >> You need using namespace vigil::applications, which Flow_fetcher is >>> >> in. >>> >> Also fix the problem I previously mentioned, i.e., resolve(ff) and not >>> >> resolve(Flow_fetcher) >>> >> You also have a stray line "boost::shared_ptr<Flow_fetcher>" in >>> >> newcomp.cc. >>> >> >>> >> Finally Flow_fetcher is *not* a NOX component, so you cannot resolve >>> >> it this way. You should look at Flow_fetcher_app instead. >>> >> >>> >> Regards >>> >> KK >>> >> >>> >> On 7 January 2011 14:00, Paulo César <pcd...@gmail.com> wrote: >>> >> > Thanks. >>> >> > >>> >> > 2011/1/7 kk yap <yap...@stanford.edu> >>> >> >> >>> >> >> Hi Paulo, >>> >> >> >>> >> >> Can I have your Makefile.am too? >>> >> >> >>> >> >> Regards >>> >> >> KK >>> >> >> >>> >> >> On 7 January 2011 13:46, Paulo César <pcd...@gmail.com> wrote: >>> >> >> > Hi, >>> >> >> > I have already tested it but the error persists. >>> >> >> > The error is accused on the header newcomp.hh : >>> >> >> > ../../../../../src/nox/netapps/newcomp/newcomp.hh:98: error: ISO >>> >> >> > C++ >>> >> >> > forbids >>> >> >> > declaration of ‘Flow_fetcher’ with no type >>> >> >> > Sorry to bother, thanks for help. >>> >> >> > Best regards. >>> >> >> > >>> >> >> > 2011/1/7 kk yap <yap...@stanford.edu> >>> >> >> >> >>> >> >> >> Hi Paulo, >>> >> >> >> >>> >> >> >> cc-ing back the list for archival. >>> >> >> >> >>> >> >> >> It should be resolve(ff) and not resolve (Flow_fetcher). That >>> >> >> >> should >>> >> >> >> resolve it. >>> >> >> >> >>> >> >> >> Regards >>> >> >> >> KK >>> >> >> >> >>> >> >> >> On 7 January 2011 10:38, Paulo César <pcd...@gmail.com> wrote: >>> >> >> >> > Thanks for the help. >>> >> >> >> > >>> >> >> >> > 2011/1/7 kk yap <yap...@stanford.edu> >>> >> >> >> >> >>> >> >> >> >> Hi Paulo, >>> >> >> >> >> >>> >> >> >> >> Can you send me a tarball of the component? There is >>> >> >> >> >> insufficient >>> >> >> >> >> information here us to comment. >>> >> >> >> >> >>> >> >> >> >> Regards >>> >> >> >> >> KK >>> >> >> >> >> >>> >> >> >> >> On 7 January 2011 09:57, Paulo César <pcd...@gmail.com> >>> >> >> >> >> wrote: >>> >> >> >> >> > Yes, I already have included the flow fetcher's header. I >>> >> >> >> >> > am >>> >> >> >> >> > declaring >>> >> >> >> >> > the >>> >> >> >> >> > flow fetcher in the header of my component this way: >>> >> >> >> >> > private: >>> >> >> >> >> > Flow_fetcher *ff; >>> >> >> >> >> > I did this based on how routing.cc utilizes the Topology >>> >> >> >> >> > class >>> >> >> >> >> > and >>> >> >> >> >> > in >>> >> >> >> >> > the >>> >> >> >> >> > tutorial available >>> >> >> >> >> > in http://noxrepo.org/noxwiki/index.php/Developing_in_NOX. >>> >> >> >> >> > Any suggestions? >>> >> >> >> >> > Thansk for the reply. >>> >> >> >> >> > >>> >> >> >> >> > 2011/1/7 kk yap <yap...@stanford.edu> >>> >> >> >> >> >> >>> >> >> >> >> >> Hi Paulo, >>> >> >> >> >> >> >>> >> >> >> >> >> You have not include the flow fetcher's header? Sorry for >>> >> >> >> >> >> the >>> >> >> >> >> >> wild >>> >> >> >> >> >> guess, but from what you provided this seems like >>> >> >> >> >> >> something >>> >> >> >> >> >> about >>> >> >> >> >> >> header inclusion. >>> >> >> >> >> >> >>> >> >> >> >> >> Regards >>> >> >> >> >> >> KK >>> >> >> >> >> >> >>> >> >> >> >> >> On 7 January 2011 06:36, Paulo César <pcd...@gmail.com> >>> >> >> >> >> >> wrote: >>> >> >> >> >> >> > Hi, >>> >> >> >> >> >> > I was trying to use the method fetch() from >>> >> >> >> >> >> > flow_fetcher.cc. >>> >> >> >> >> >> > I included the header flow_fetcher.hh in my component >>> >> >> >> >> >> > and >>> >> >> >> >> >> > added >>> >> >> >> >> >> > flow >>> >> >> >> >> >> > fetcher >>> >> >> >> >> >> > as a dependency in the meta.json file, >>> >> >> >> >> >> > but an error occurs on compilation: >>> >> >> >> >> >> > ../../../../../src/nox/netapps/newcomp/newcomp.hh:98: >>> >> >> >> >> >> > error: >>> >> >> >> >> >> > ISO >>> >> >> >> >> >> > C++ >>> >> >> >> >> >> > forbids >>> >> >> >> >> >> > declaration of ‘Flow_fetcher’ with no type >>> >> >> >> >> >> > Any suggestions to solve this? Am I missing something? >>> >> >> >> >> >> > Best regards. >>> >> >> >> >> >> > -- >>> >> >> >> >> >> > "Life is not fair; get used to it." >>> >> >> >> >> >> > Bill Gates >>> >> >> >> >> >> > >>> >> >> >> >> >> > >>> >> >> >> >> >> > _______________________________________________ >>> >> >> >> >> >> > nox-dev mailing list >>> >> >> >> >> >> > nox-dev@noxrepo.org >>> >> >> >> >> >> > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org >>> >> >> >> >> >> > >>> >> >> >> >> >> > >>> >> >> >> >> > >>> >> >> >> >> > >>> >> >> >> >> > >>> >> >> >> >> > -- >>> >> >> >> >> > "Life is not fair; get used to it." >>> >> >> >> >> > Bill Gates >>> >> >> >> >> > >>> >> >> >> >> > >>> >> >> >> > >>> >> >> >> > >>> >> >> >> > >>> >> >> >> > -- >>> >> >> >> > "Life is not fair; get used to it." >>> >> >> >> > Bill Gates >>> >> >> >> > >>> >> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > >>> >> >> > -- >>> >> >> > "Life is not fair; get used to it." >>> >> >> > Bill Gates >>> >> >> > >>> >> >> > >>> >> > >>> >> > >>> >> > >>> >> > -- >>> >> > "Life is not fair; get used to it." >>> >> > Bill Gates >>> >> > >>> >> > >>> > >>> > >>> > >>> > -- >>> > "Life is not fair; get used to it." >>> > Bill Gates >>> > >>> > >> >> >> >> -- >> "Life is not fair; get used to it." >> Bill Gates >> > > > > -- > "Life is not fair; get used to it." > Bill Gates > > _______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org