This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Type-generic macros with C


JÃrg Leis <joerg@joergleis.com> writes:

> A related question: Is it expected that in C99-mode GCC might not be
> able to compile a program because of the use of an inline function? I
> defined an inline function like this:
>
> inline int do()
> {
> 	// ...
> }

C99 mode should support inline functions just fine.  If you are having
trouble, show us the complete test case and tell us what happens.
Also the version of gcc makes a difference; full support for C99
inline functions was first in gcc 4.3.

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]