-
library 만들기프로그래밍 언어/C++ 2023. 3. 30. 21:49
library
- header only- 헤더에 정의
- static library- .a (linux), .lib (window) 라이브러리
- dynamic library- 로드 타임
- 런타임
-fPIC (Position Independent Code)
GOT (Global Offset Table)
PLT (Prosedure Linkage Table)static과 extern
static은 내부에서만 링크를 사용
extern은 외부에 링크 허용
nm 명령어 - name mangling
c++ 에서 mangling 사용, c에서 사용하기 위해서는 mangling 없애줘야함'프로그래밍 언어 > C++' 카테고리의 다른 글
std::signal (0) 2024.07.16 std::bind(), std::function(), std::placeholder (0) 2023.12.28 iterator란 무엇인지, queue에서는 iterator가 없는 이유 (0) 2023.08.17 헤더 파일이 필요한 이유 (0) 2023.03.30 build 옵션 (0) 2023.03.30