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!

 

'끄적끄적' 카테고리의 다른 글

Insertion Sort (C++)  (0) 2022.05.01
Insertion Sort (Lisp)  (0) 2022.05.01
Iterative Quicksort (C++)  (0) 2022.05.01

+ Recent posts