I’m attempting to write an additional stretching filter for siril based on an idea in the Astrobin forums by David Payne (see the link at the bottom for details). The code is done (based off asinh.c) except for the command-line glue I need to put into command.c, and I’ve added an additional dialog to siril.glade. My code compiles ok, but fails at the linker stage with the following:
/usr/bin/ld: src/libsiril.a.p/gui_dialogs.c.o:(.data.rel.ro+0x28): undefined reference to `apply_payne_cancel’
But I have defined void apply_payne_cancel() in my additional header file payne.h, which is included in dialogs.c
Is there something obvious I’m missing?