Hi 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