Begin of Makefile CFLAGS sdl-config --cflags -W -Wall -ggdb -O2 SDL_LI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Begin of Makefile:
CFLAGS=`sdl-config --cflags` -W -Wall -ggdb -O2
SDL_LIB=`sdl-config --libs` -lSDL_mixer -SDL_ttf
LOC1=`-l/home/416/asg6/asg6/SDL/SDL_ttf-2.0.9/inst/include ^M
LOC2=`-L/home/416/as6/asg6/SDL/SDL_ttf-2.0.9/inst/lib
CCC=g++^M
^M
OBJECTS = background.o bullet.o bullets.o enemy.o explosion.o \^M
exSprite.o introManager.o manager1.o player.o sound.o \^M
sprite.o texture.o^M
^M
run: main.o $(OBJECTS)^M
$(CCC) $(CFLAGS) -o run $(OBJECTS) $(SDL_LIB) $(LOC1) $(LOC2) ^M
^M
main.o: main.cpp manager1.h introManager.h single.h^M
$(CCC) $(CFLAGS) -c main.cpp^M
Begin of errors:
g++ `sdl-config --cflags` -W -Wall -ggdb -O2 -c introManager.cpp
In file included from texture.h:4,
from sprite.h:5,
from introManager.h:9,
from introManager.cpp:1:
single.h:4:25: error: SDL/SDL_ttf.h: No such file or directory
single.h:74: error: ISO C++ forbids declaration of 'TTF_Font' with no type
single.h:74: error: expected ';' before '*' token
single.h: In member function 'void Single::print(SDL_Surface*, const std::string&, float, Uint32, Uint32)':