Sign in to follow this  
felipedrl

OpenGL FTGL linking problem in Release configuration

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this