Advertisement

SDL_ttf in DevC++ - WTF does it take?

Started by January 22, 2005 07:23 PM
4 comments, last by Drew_Benton 19 years, 7 months ago
How in the world do you get the file 'SDL_ttf.a'? Why isn't it just freely available from the site? I tried all the information about building it, but holy crap it's been 5 hours and I'm STUMPED.
- A momentary maniac with casual delusions.
Here ya go! Just use Dev-CPP package manager to add it in. If you need help with that I can assist you. I think you need at least the 1.2.7 Dev-Pak avaliable here or the 1.2.8 avaliable here. I would not reccomend using the 1.2.6 version avaliable for it is outdated.

- Drew
Advertisement
Awesome! I knew there was an easy way so thanks for pointing it out. I'm also new to Dev C++, and I'm finding out I'm a little spoiled by VS.NET!

What in the world would cause [Linker error] undefined reference to `WinMain@16' ? That's nowhere in my code as I'm simply trying to port a tetris clone to Dev C++ - a console app.
- A momentary maniac with casual delusions.
You will need to link (in this order):
-lmingw32-lSDLmain-lSDL


Then your main function needs to be in this format:
int main( int argc,char* argv[] ){    return 0;}


- Drew

[edit] This can be done by hitting Alt+P, then choose "Parameters" and add them in the "Linker" box.
Ah, I was missing lSDLmain. I now see that I can start an SDL project with Dev C++ :)
- A momentary maniac with casual delusions.
Awesome! Good luck with your program [smile].

This topic is closed to new replies.

Advertisement