1
SFML wiki / Re: Animated Sprite class
« on: March 26, 2014, 08:45:26 pm »
Ughh... yea, Im dumb..
This was caused by not linking properly. KNOW your compiler/linker!!
Ok, I wasn't compiling all the files for ones so,
instead of
g++-c main.cpp
needed to do
g++ -c main.cpp Animation.cpp AnimatedSprite.cpp
and during the linker stage needed to do,
g++ AnimatedSprite.o Animation.o main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system
ughh sorry bout all that.
This was caused by not linking properly. KNOW your compiler/linker!!
Ok, I wasn't compiling all the files for ones so,
instead of
g++-c main.cpp
needed to do
g++ -c main.cpp Animation.cpp AnimatedSprite.cpp
and during the linker stage needed to do,
g++ AnimatedSprite.o Animation.o main.o -o sfml-app -lsfml-graphics -lsfml-window -lsfml-system
ughh sorry bout all that.