-------- Original Message --------
Subject: Re: [ibr-dtn] Android Apps Neighbor Discovery
From: Johannes Morgenroth <
morgenroth@ibr.cs.tu-bs.de>
Date: Fri, February 15, 2013 10:18 am
To:
ibr-dtn@ibr.cs.tu-bs.deHi Justin,
the only important thing while adding new code is to add them to the
right
Makefile.am and then re-run "bash
autogen.sh" and the configure
procedure. If this is done correctly, everything should work
auto-magically.
Files (both, header and cpp file) in src/net/ should added to the
"net_SOURCES" variable in src/net/
Makefile.am.
Kind regards,
Johannes Morgenroth
Am Mittwoch, den 13.02.2013, 13:24 -0700 schrieb
justin@gardettoengineering.com:
> Thanks for your help, Johannes.
>
> I've been able to reproduce a static binary that the app will run.
> Now I want to be able to add my own source to daemon/src/net. I have
> IPNDAgent.cpp making a function call from my other source code called
> newDiscovery.cpp and newDiscovery.h. The top of IPNDAgent.cpp has
> #include "net/newDiscovery.h" and I have included both new files in
> the
Makefile.am. I got the two new files to compile with .o and .lo
> files. However, I am getting an undefined reference to the function
> call in IPNDAgent.cpp. So, the linker seems to not be linking the
> files properly. Would you or anyone else know what else I might need
> to do to tell the linker that IPNDAgent needs newDiscovery.h?
>
> Thanks,
>
> Justin
--
!! This message is brought to you via the `ibr-dtn' mailing list.
!! Please do not reply to this message to unsubscribe. To unsubscribe or adjust
!! your settings, send a mail message to <
ibr-dtn-request@ibr.cs.tu-bs.de>
!! or look at
https://www.ibr.cs.tu-bs.de/mailman/listinfo/ibr-dtn.