문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
|
wiki:eclipse:cdt [2020/05/19 15:55] dhan |
wiki:eclipse:cdt [2023/01/13 18:44] (현재) |
||
|---|---|---|---|
| 줄 26: | 줄 26: | ||
| - C/Cplusplus Build -> Settings | - C/Cplusplus Build -> Settings | ||
| - Tool Settings -> GCC Linker -> Libraries | - Tool Settings -> GCC Linker -> Libraries | ||
| - | > pthread, iconv 처럼 해야됨 \\ | + | pthread, iconv 처럼 해야됨 \\ |
| [[https:// | [[https:// | ||
| 줄 35: | 줄 36: | ||
| - Position Independent Code (-fPIC) check!! | - Position Independent Code (-fPIC) check!! | ||
| + | ==== Makefile 자동생성 ==== | ||
| + | - Project -> Properties | ||
| + | - C/Cplusplus Build | ||
| + | - Builder Settings -> Makefile generation | ||
| + | |||
| + | Generate Makefiles automatically 체크 후 Apply \\ | ||
| ==== 소스 폴더 지정 ==== | ==== 소스 폴더 지정 ==== | ||
| 줄 40: | 줄 47: | ||
| - C/Cplusplus General -> Paths and Symbols | - C/Cplusplus General -> Paths and Symbols | ||
| - Source Location | - Source Location | ||
| + | |||
| + | ==== 실행파일 종류 지정 ==== | ||
| + | - Project -> Properties | ||
| + | - C/Cplusplus Build -> Settings | ||
| + | - Build Artifact | ||
| + | |||
| + | Artifact Type: 선택박스에서 Executable | Shared Library | Static Library 중 하나 지정 \\ | ||
| + | |||
| + | ==== 출력파일 지정 ==== | ||
| + | - Project -> Properties | ||
| + | - C/Cplusplus General -> Paths and Symbols | ||
| + | - Output Location | ||
| + | |||
| + | ==== 코드 스타일 지정(Formatter) ===== | ||
| + | - Windows -> Preferences | ||
| + | - C/Cplusplus -> Code Style -> Formatter | ||
| + | - BSD/Allman 사용 | ||
| + | |||
| + | - Mouse right click -> Source -> Format 실행 | ||
| ===== Tip ===== | ===== Tip ===== | ||
| + | [[https:// | ||
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||