Missing implicit function in gv_notebook.c
molecular editor and viewer
Status: Beta
Brought to you by:
gkovacev
When compiling on macOS I get this error:
..../luscus/gv_notebook.c:3146:3: error: call to undeclared function 'set_calculation'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
3146 | set_calculation(gargv, calc_filename, calc_defs[icalc].path);
| ^
Adding this prototype declaration in gv_notebook.c as taken from the file luscus_gtk_util.c fixed compilation and the resulting binary worked on macOS-arm.
/* from luscus_gtk_util.c */
void set_calculation(gchar** gargv, gchar *calc_filename, gchar *path);
My suggestion would be to create and add a proper header file luscus_gtk_util.h
Regards.