LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-14-2002, 12:52 AM   #1
philipsyyy
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..) {
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
 
  


Reply


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 08:03 AM
inline function and macros in C++ carthyc Linux - General 2 05-14-2005 01:16 AM
Defining a non-inline function inside class definition (tm) Programming 6 05-11-2005 10:14 AM
inline assembly in gcc gursev Programming 2 03-04-2005 03:17 AM
[SOLVED] C++ inline function: Use or don't use? druuna Programming 7 09-13-2004 05:08 PM


All times are GMT -5. The time now is 10:48 AM.

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