gcc warning: function used but not defined
问题 I am getting the warning: function used but not defined . I have static __inline__ in header file say a.h . The header file is included in a.c . I would like put all those inline function which are in header files into the .c files. Following code gives the idea of my problem. Orginal code: a.h: static __inline__ function1(){ function definition; } I changed: a.h: static function1(); a.c: #include "a.h" static function1(){ function definition; } On doing above I got the warning: warning: