Jump to content
  • Advertisement
Sign in to follow this  
TQ

TTF_INT() no surface

This topic is 2951 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

I am currently learning SDL and I am now experimenting with TTF_INIT() in C++ using Eclipse on Windows 7 (minGW32).

I have installed all the libraries and includes for MinGW32,SDL and SDL_TTF and tested it using the tutorial code provided here: http://www.lazyfoo.net/SDL_tutorials/lesson07/index.php

However, when run, the window for the SDL surface fails to appear and there are no errors mentioned during compile, the program runs and terminates. It will for some reason work correctly when i go through it step by step in debug mode. Although if I go into the folder where the .exe is created and run that, windows complains there is no SDL_TTF.dll.

To install I put all the .dll files in ~/mingw/bin, all the includes in ~/mingw/include/SDL and all the libs in ~/mingw/lib.

I have linked the libraries in the correct order too.

Pure SDL and SDL_image programs will run and put images on surfaces, but whenever i include the TTF_INT() function, no surface will appear.

Racking my brains out over this one now, so asking for help if anyone has an idea?

thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
The only message I get is:

No source available for "main() at 0x401d80"

and a warning

path: Duplicate path entries found (/SDL_TTF [Include path] isSystemInclude:true includePath:C:/Wascana/mingw/include), path: [/SDL_TTF].

but in this case, it runs and the surface is created correctly.

Share this post


Link to post
Share on other sites
Could you copy and paste the source file from Eclipse CDT?

Did you configure as instructed in tutorial 1? I know it sounds silly but in my early days I was silly to go ahead without setting up SDL!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!