On Sat, 29 Jan 2005, Montgomery, Steven S wrote:
Where/how do you set dependencies in the Inkscape makefile setup? When integrating this new code(which is of course in it's own file) to be called from a dialog, we're having issues with linking. It finds the function definition, but then gives the following error: dialogs/libspdialogs.a(inkboard-connect.o)(.text+0xa91): In function `sp_inkboardConnect_dialog_inkboardConnect(_GObject*, _GObject*)': dialogs/inkboard-connect.cpp:226: undefined reference to `connect_and_auth(char*, char*, char*)'
connect_and_auth is defined in src/inkboard.cpp and is called from src/dialogs/inkboard-connect.cpp when the user clicks a button on the new dialog.
I ran mkfiles.pl and mkdep.pl. Make.dep lists inkboard-connect.o being dependent on inkboard.h, but it's not picking up the function definition.
We appreciate any help/direction on this. Thanks, Steven
Hi Steven,
Whenever you add a new file to the codebase, you need to add that file to the makefile as well.
Look in src/Makefile_insert, and try adding a line to the libinkpre_a_SOURCES = .... section like this:
inkboard.cpp inkboard.h \
You may also need to add inkboard-connect.cpp to the Makefile_insert in the src/dialogs directory as well.
Bryce