This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/48194] gcc -std=c99 fails to link when calling inline function
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 18 Mar 2011 19:10:25 +0000
- Subject: [Bug c/48194] gcc -std=c99 fails to link when calling inline function
- Auto-submitted: auto-generated
- References: <bug-48194-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48194
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-03-18 19:10:22 UTC ---
Because you are not using inline correctly. inline without any qualifiers in
C99 is what is called GNU's extern inline; You need to declare an extern
(exported) version of the inline function.