저는 this generic makefile을 사용하고 있습니다. 이 사용자 지정 옵션을Makefile 오류 : SDL 및 OpenGL로 컴파일 된 구분 기호가 누락되었습니다.
:
# The pre-processor options used by the cpp (man cpp for more).
CPPFLAGS = -Wall -I/Library/Frameworks/SDL.framework/Headers
# The options used in linking as well as in any direct use of ld.
LDFLAGS = -framework SDL -framework Cocoa -framework OpenGL
# The executable file name.
# If not specified, current directory name or `a.out' will be used.
PROGRAM = app
# The source file types (headers excluded).
# .c indicates C source files, and others C++ ones.
SRCEXTS = .c .C .cc .cpp .CPP .c++ .cxx .cp .m
clean:
$(RM) $(OBJS) $(PROGRAM) $(PROGRAM)
대신 :
# The pre-processor options used by the cpp (man cpp for more).
CPPFLAGS = -Wall
# The options used in linking as well as in any direct use of ld.
LDFLAGS =
# The executable file name.
# If not specified, current directory name or `a.out' will be used.
PROGRAM =
# The source file types (headers excluded).
# .c indicates C source files, and others C++ ones.
SRCEXTS = .c .C .cc .cpp .CPP .c++ .cxx .cp
clean:
$(RM) $(OBJS) $(PROGRAM) $(PROGRAM).exe
Here 당신은 내가 실행 해요 메이크 파일의 전체 버전을 찾을 수 있습니다.
Mac OS X 10.6.8을 gcc 4.2.1과 함께 사용하고 있으며 main.cpp
을 SDLMain.m
및 SDLMain.h
과 함께 SDL 및 OpenGL을 사용하여 컴파일하려고합니다. 팝업
오류 :
-n ./
main.o: main.cpp
문제가 무엇 :
main.d:1: * missing separator. Stop.
와 (메이크 파일에 의해 생성) 파일 main.d이 무엇입니까?
당신이 여기에 전체 파일을 전시하고 있습니까를? 왜냐하면 나는'include'줄을 보지 않았지만 그것은 별도의 파일 ('main.d')의 내용에 대해 불평하고있다. * // 오류 메시지 읽기 : 사용자가 수행하는 작업 * – dmckee
@dmckee [This] (http://pastebin.com/fqXxDesJ)는 해당 파일의 전체 붙여 넣기입니다. (또한 내 질문의 첫 번째 줄을 유의하십시오.) – Shoe
* "(내 질문의 첫 번째 줄을주의하십시오.)"* 사이트 외부에서 코드를 읽지 않습니다. 질문은 자신의 것으로 써야합니다. 특히 사이트를보기 위해 여러 번 클릭해야한다면 코드를 읽지 않아도됩니다.기존 의존성 파일 ('.d')에 문제가 있습니다. 그 (것)들을 맑게하고 재발하는지보십시오. – dmckee