我試圖編譯this code使用MinGW,但我得到這個錯誤,雖然我已經安裝了SDL2:GCC不能看到SDL
Makefile文件看起來是這樣的:
SDL_CFLAGS = `sdl2-config --cflags`
SDL_LIBS = `sdl2-config --libs` -lSDL2_mixer -lGL
DEFINES = -DBYPASS_PROTECTION
CXXFLAGS := -g -O -MMD -Wall $(SDL_CFLAGS) $(DEFINES)
SRCS = aifcplayer.cpp bitmap.cpp file.cpp engine.cpp graphics_gl.cpp graphics_soft.cpp \
script.cpp mixer.cpp pak.cpp resource.cpp resource_nth.cpp resource_win31.cpp \
resource_3do.cpp systemstub_sdl.cpp sfxplayer.cpp staticres.cpp unpack.cpp \
util.cpp video.cpp main.cpp
OBJS = $(SRCS:.cpp=.o)
DEPS = $(SRCS:.cpp=.d)
rawgl: $(OBJS)
$(CXX) $(LDFLAGS) -o [email protected] $(OBJS) $(SDL_LIBS) -lz
clean:
rm -f $(OBJS) $(DEPS)
-include $(DEPS)
[第0課:MinGW(設置SDL)](http://www.willusher.io/sdl2%20tutorials/2013/08/15/lesson-0-mingw)。 –
是的,我確定它已安裝。我甚至試着將'SDL.h'複製到代碼的目錄中,只是爲了測試,我仍然得到這個錯誤 –
從鏈接的課程:'#include' –