끄적끄적
C++ Link
리리쟝
2023. 8. 16. 19:03
https://www.youtube.com/watch?v=H4s55GgAg0I
C++ Linking
liking: source(C++) file to~ actual executable binary
compilation = compile + link
find where each symbol is & link them together
files are actually seperated, so we need to link them together in one program -> purpose of linker
분리되어있지 않은 한 파일의 코드일지라도 main() 을 찾아서 시작해야 하므로 사실상 main 과 다른 function들을 링크해야 함
LNK error = linking error
static function() >> this function is only declared for this unit
if cannot find the exact one >> linking error!