The tricky inline specifier in C99

March 21, 2011

Try to compile the following simple C program in C99 mode with GCC: The results may surprise you: $ gcc test.c -std=c99 /tmp/ccWN4GRh.o: In function `main’: test.c:(.text+0xa): undefined reference to `foo’ collect2: ld returned 1 exit status Huh? The function’s right there! Well it turns out that this is not a bug in GCC, but […]

Comments Off on The tricky inline specifier in C99