I haven't programmed in a long while, and am having trouble with a compiler warning. I'm linking to a shared library using clang and am getting the following warning:
warning: implicit declaration of function
'function_name' is invalid in C99
[-Wimplicit-function-declaration]
I have the file included above the function that calls it, so the only thing I can think of that might be causing it, is the function declarations in the shared library's include files, are all declared in the following form:
LIBNAME_API void set_window_title(const char *title);
I think I had this problem when I used Visual Studio a long time ago. I think I set a compiler setting that gave it the name of of the LIBNAME_API, but I can't remember it. How can I fix this in gcc or clang on Linux/Unix?