Page 1 of 1

Linking error

Posted: December 13th, 2014, 11:08 pm
by StarPirate
I just added font to my project ( from the beginner series ) and this line is giving me a linking error:

Code: Select all

gfx.LoadFont(&consolas, fontSurf, "Consolas13x24.bmp", 13, 24, 32);
If you comment it you can see everything works as intended(without the font ofc). You can find it in the Game.cpp file.
I've been trying to figure out what the linking error means but with no success.

Re: Linking error

Posted: December 14th, 2014, 8:52 am
by albinopapa
You forgot D3DGraphics:: before the function in the D3DGraphics.cpp file

Re: Linking error

Posted: December 14th, 2014, 7:26 pm
by StarPirate
Thanks albino. That was a rookie mistake

Re: Linking error

Posted: December 14th, 2014, 10:46 pm
by albinopapa
I like the simulation btw, it's pretty neat.