c++ - Cannot compile SDL with Makefile -


my makefile consists of following:

cc= g++ libs= -lsdl  clean:     rm  -f  

it won't compile because g++ not take -lsdl parameter though included it.

when g++ a.cpp -o -lsdl directly in terminal compiles fine, though.

add rule:

a: a.cpp     $(cc) $< -o $@ $(libs) 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -