[ET Trac] [Einstein Toolkit] #484: CCTK_CHECK_C_INLINE can define away the inline keyword
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Thu Aug 4 10:31:53 CDT 2011
#484: CCTK_CHECK_C_INLINE can define away the inline keyword
---------------------+------------------------------------------------------
Reporter: rhaas | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: Cactus | Version:
Resolution: | Keywords:
---------------------+------------------------------------------------------
Comment (by rhaas):
Hmm, if #defining inline in cctk_Config.h helped when using (I assume by
including their header files) external libraries then was this related to
the different meaning of "extern inline" in C99 and gcc (classic) as in
http://gcc.gnu.org/gcc-4.3/porting_to.html ?
For gcc 4.6 I currently add -fgnu89-inline to CFLAGS. Otherwise I get
errors about __strsep_3c and similar things in the string2.h header (which
is part of gcc 4.6.1) unless I turn off the inline #define.
Both -std=c99 and -std=gnu99 now (gcc 4.6) use the C99 ANSI behaviour (see
http://gcc.gnu.org/onlinedocs/gcc/Inline.html).
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/484#comment:2>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list