![]() |
|
AllegroFont and MSVC |
ixilom
Member #7,167
April 2006
![]() |
Hello! This is driving me crazy, I've compiled (v2.0.6) AllegroFont both static and DLL but I cant use either one without problems Using the DLL version of the .lib I can compile my little test, run it untill I use: alfont_destroy_font(Font); MSVC pops up with Quote: "Unhandled exception at 0xSOMEHEX in alfont_text.exe: User breakpoint."
What breakpoint??? If I use the static .lib I cant even compile my test. Instead MSVC says Quote:
alfont_test error LNK2019: unresolved external symbol _ugetc referenced in function _alfont_ugetc Any ideas?
___________________________________________ |
James Stanley
Member #7,275
May 2006
![]() |
Have you tried it with a standard compiler instead of MSVC? |
Milan Mimica
Member #3,877
September 2003
![]() |
The problem is with the runtime library you are linking with. When linking a static library link against Multi-threaded (/MT). When making a DLL link against Multi-threaded DLL (/MD). When you compile your program make sure that all the libraries and the program itself use the same runtime library. Don't ask further questions, that's all I know.
-- |
ixilom
Member #7,167
April 2006
![]() |
Quote: Have you tried it with a standard compiler instead of MSVC?
Never thought of that because it does come with project files for MSVC, although for v6 and I'm using v7.1. Quote:
The problem is with the runtime library you are linking with. When linking a static library link against Multi-threaded (/MT). When making a DLL link against Multi-threaded DLL (/MD). When you compile your program make sure that all the libraries and the program itself use the same runtime library. Don't ask further questions, that's all I know. I've tried all the combinations I can, those that actually compile are the ones that give me the problems I described in the first post. I guess, I'll have to live with FontEd and make some fuggly fonts without AA ___________________________________________ |
|