Menu

#8 Missing implicit function in gv_notebook.c

1.0
open
nobody
None
2025-03-07
2025-03-07
No

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.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB