Sign in to follow this  
NickGravelyn

Linker Error Compiling FTGL

Recommended Posts

I'm trying to compile FTGL for my PC, but I'm getting this linker error:
1>LINK : fatal error LNK1104: cannot open file 'freetype204MT_D.lib'


I am using VC++ 2005 Express. I made sure to go Tools->Options and add the include directory and objs directory after building freetype 2.1.10 using its included VC++ project. Any ideas?

Share this post


Link to post
Share on other sites
Quote:
Original post by NickGravelyn
I made sure to go Tools->Options and add the include directory and objs directory after building freetype 2.1.10 using its included VC++ project.


Did you mean 'libs' rather than 'objs'? If not, then that is your problem. You have to set the Libraries option to point to where the freetype library is. If that's not it, did you check to make sure that freetype204MT_D.lib actually exists? If so, then double-check your Tools/Options/Libraries is correct.

Share this post


Link to post
Share on other sites
I checked. The objs folder is where the library gets built but I don't have freetype204MT_D.lib I have freetype2110MT_D.lib. I just have a newer version. Is there any way to tell ftgl I have this newer version?

Share this post


Link to post
Share on other sites
It looks like the windows projects are messed up in the distribution. They reference the old libarary names.

Try going into the Project/Options/Linker and changing the references from freetype204MT_D.lib to freetype2110MT_D.lib.

Share this post


Link to post
Share on other sites
Gave it a try and this is what it tells me:

1>------ Build started: Project: ftgl_dll, Configuration: Debug MT Win32 ------
1>Linking...
1> Creating library .\../Build/ftgl_dynamic_MTD_d.lib and object .\../Build/ftgl_dynamic_MTD_d.exp
1>LINK : warning LNK4098: defaultlib 'LIBCMTD' conflicts with use of other libs; use /NODEFAULTLIB:library
1>freetype2110MT_D.lib(ftinit.obj) : error LNK2001: unresolved external symbol _otv_module_class
1>../Build/ftgl_dynamic_MTD_d.dll : fatal error LNK1120: 1 unresolved externals
1>Build log was saved at "file://c:\Documents and Settings\Nick Gravelyn\Desktop\FTGL\win32_vcpp\ftgl_dll\Debug_MT\BuildLog.htm"
1>ftgl_dll - 2 error(s), 1 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

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