This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/31389] [4.3 Regression] undefined reference with inline function and -std=gnu99
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Mar 2007 14:15:09 -0000
- Subject: [Bug c/31389] [4.3 Regression] undefined reference with inline function and -std=gnu99
- References: <bug-31389-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-03-29 15:15 -------
Plain inline without any thing which says static or extern in C99 is the same
as what GNU-C90 considers as their "extern inline" and not what C99 considers
as "extern inline". If you add a prototype that says extern, it will just
work.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31389