Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-13-2002, 11:52 PM   #1
LQ Newbie
Registered: Sep 2002
Posts: 19

Rep: Reputation: 0
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..) {

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.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
inline function means alaios Programming 9 08-31-2005 07:03 AM
inline function and macros in C++ carthyc Linux - General 2 05-14-2005 12:16 AM
Defining a non-inline function inside class definition (tm) Programming 6 05-11-2005 09:14 AM
inline assembly in gcc gursev Programming 2 03-04-2005 02:17 AM
[SOLVED] C++ inline function: Use or don't use? druuna Programming 7 09-13-2004 04:08 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration