인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

Jae Ung Yoon's profile image
Jae Ung Yoon

asked

Hong Jeong-mo's C Language: Learn by Following

9.11 How to create a header file

gcc -o 사용해도 여전히 헤더파일 만들기 오류

Written on

·

268

0

위에 질문 올려주신 분이랑 똑같은 문제입니다.

저는 맥 컴퓨터에서 vs code를 사용 중인데요.

gcc -c main.c
gcc -c header.c
gcc -o program_name main.o header.o 

를 했는데도 build 할 때 이런 에러가 뜹니다.

c

Answer 1

0

honglab님의 프로필 이미지
honglab
Instructor

header.h가 아니라 header.c인 것이 일단 눈에 걸리네요.

Jae Ung Yoon's profile image
Jae Ung Yoon

asked

Ask a question