I just created two files to test the built-in link function, the first
second:
int main(){ extern void f1(int a,int b); f1(1,2); }
g ++ frist.cc second.cc
undefined reference to `f1(int, int)'
linker throws an error since I expect the inline function to be the default internal link, so the result is correct.
but when I add the function call the built-in function to the first file:
and compile again, it went through and can work without errors, so I want to ask what happened here?
source share