Jump to content
  • Advertisement
Sign in to follow this  
felipedrl

OpenGL FTGL linking problem in Release configuration

This topic is 2359 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

Hi,

I'm using FTGL to render Truetype fonts with OpenGL. I've compiled FTGL project to generate both ftgl_static_D(debug) and ftgl_static.lib (release) libraries to use in my project.

The debug configuration of my project is able to link(i get some "locally defined symbol" linker warning though), while the release is not. I event tried to link release with the ftgl_static_D.lib just to get the same linker errors (__declspec(dllimport)).

After a while I realized that changing the project settings from "Use link time optimization" to "No whole program optimization" will do the trick but with the same link warnings as the debug configuration.

Does anyone knows why enabling link time optimization would cause it to fail linking.

Share this post


Link to post
Share on other sites
Advertisement
Thanks for posting this. I needed to get an application with FTGL running in release, and removing global optimisation was the simplest way to do it. Not a long term solution, but if not for you saying this works I would still be trying freetype recompilations and other stuff, instead of moving on.

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!