1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
metulburr@arch ~/repos/sdl/test $ make
g++ -c -I/usr/include/SDL2 -std=c++11 -Wall main.cpp -o main.o -lSDL2 -lSDL2_image
g++ -c -I/usr/include/SDL2 -std=c++11 -Wall Control.cpp -o Control.o -lSDL2 -lSDL2_image
g++ -c -I/usr/include/SDL2 -std=c++11 -Wall Character.cpp -o Character.o -lSDL2 -lSDL2_image
g++ -c -I/usr/include/SDL2 -std=c++11 -Wall texture_manager.cpp -o texture_manager.o -lSDL2 -lSDL2_image
texture_manager.cpp:10:64: error: default argument given for parameter 7 of 'void TextureManager::draw(std::string, int, int, int, int, SDL_Renderer*, SDL_RendererFlip)' [-fpermissive]
SDL_Renderer* renderer, SDL_RendererFlip flip=SDL_FLIP_NONE){
^
In file included from texture_manager.cpp:3:0:
texture_manager.h:11:14: error: after previous specification in 'void TextureManager::draw(std::string, int, int, int, int, SDL_Renderer*, SDL_RendererFlip)' [-fpermissive]
void draw(std::string id, int x, int y, int width, int height,
^
makefile:16: recipe for target 'texture_manager.o' failed
make: *** [texture_manager.o] Error 1
metulburr@arch ~/repos/sdl/test $
|