Posted to tcl by apn at Wed Jun 20 03:20:23 GMT 2018view raw
- apn@IO:/mnt/d/src/builds/tarray0.9.0$ cat x.c
- inline int inlinefn() {return 0;}
- int main() { return inlinefn(); }
- apn@IO:/mnt/d/src/builds/tarray0.9.0$ gcc -o x x.c
- /tmp/ccj5il4u.o: In function `main':
- x.c:(.text+0xa): undefined reference to `inlinefn'
- collect2: error: ld returned 1 exit status
- apn@IO:/mnt/d/src/builds/tarray0.9.0$ gcc -std=c99 -o x x.c
- /tmp/ccmqRQPN.o: In function `main':
- x.c:(.text+0xa): undefined reference to `inlinefn'
- collect2: error: ld returned 1 exit status