Menu

#16 error: call to undeclared function 'filedlg_show'

open
None
5
2024-07-23
2024-07-23
No

aewan 1.0.01 fails to build with modern clang (Apple clang 12 or later or llvm.org clang 16 or later) which considers implicit function declarations to be an error:

debug_aewl.c:22:14: error: call to undeclared function 'filedlg_show'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
   22 |    char *s = filedlg_show("Test Dialog");
      |              ^
debug_aewl.c:22:10: error: incompatible integer to pointer conversion initializing 'char *' with an expression of type 'int' [-Wint-conversion]
   22 |    char *s = filedlg_show("Test Dialog");
      |          ^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.

The fix is to #include "filedlg.h" in debug_aewl.c.

1 Attachments

Discussion


Log in to post a comment.