inline void foo(){}
int main(){foo();}
That seemingly innocent code gives the following linker error:$gcc -std=c99 -Wall -Wextra -pedantic inlinetest.c /tmp/cc4A48Yu.o: In function `main': inlinetest.c:(.text+0x12): undefined reference to `foo' collect2: ld returned 1 exit status


Sign In
Create Account


Back to top









