gcc: compilation with extern inline function
I am calling some functions from linux kernel with gcc kernel.
there are some inline functions in the header files like:
extern __inline__ int f(argments..) {
dosomthing;
}
The problem I have is, when I include these header files, and compile c file, it seems that "extern" prevent to extend the
definition of those inline functions. So compile will complain that
it can not resolve symbole, for example f.
Seem if I use g++, it can extend the definition, or I delete the extern, it can do that as well.
The problem is, these files are old C files, I can not use g++ for
compilation. I don't want change the header files as well, they are
supposed to work I imagine.
Do I miss some options paased to gcc?
Thanks for your help.
Philips
|