-1

MSVC2010 での Allegro 5.0.8 の静的リンクについて誰か助けてもらえますか? allegro-5.0.8-monolith-static-mt.lib; ->これは私にはうまくいきません。IDE からゲームを実行できますが、ソリューションをリリースできません。私はこれを私のプログラムの一番上に持っています:

#include <allegro5/allegro.h>
#include <allegro5/allegro_image.h>
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_native_dialog.h>
#include <allegro5/allegro_font.h>
#include <allegro5/allegro_ttf.h>

そして、これは私のビルド出力に表示されます:

1>------ Build started: Project: igra2, Configuration: Release Win32 ------
1>allegro_ttf-5.0.8-static-mt.lib(ttf.obj) : error LNK2001: unresolved external symbol _FT_Load_Glyph
1>allegro_ttf-5.0.8-static-mt.lib(ttf.obj) : error LNK2001: unresolved external symbol _FT_Get_Kerning
1>allegro_ttf-5.0.8-static-mt.lib(ttf.obj) : error LNK2001: unresolved external symbol _FT_Get_Char_Index
1>allegro_ttf-5.0.8-static-mt.lib(ttf.obj) : error LNK2001: unresolved external symbol _FT_Done_Face
1>allegro_ttf-5.0.8-static-mt.lib(ttf.obj) : error LNK2001: unresolved external symbol _FT_Request_Size
1>allegro_ttf-5.0.8-static-mt.lib(ttf.obj) : error LNK2001: unresolved external symbol _FT_Set_Pixel_Sizes
1>allegro_ttf-5.0.8-static-mt.lib(ttf.obj) : error LNK2001: unresolved external symbol _FT_Attach_File
1>allegro_ttf-5.0.8-static-mt.lib(ttf.obj) : error LNK2001: unresolved external symbol _FT_Open_Face
1>allegro_ttf-5.0.8-static-mt.lib(ttf.obj) : error LNK2001: unresolved external symbol _FT_Done_FreeType
1>allegro_ttf-5.0.8-static-mt.lib(ttf.obj) : error LNK2001: unresolved external symbol _FT_Init_FreeType
1>C:\Users\Nikola\Documents\Visual Studio 2010\Projects\igra2\Release\igra2.exe : fatal error LNK1120: 10 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

他に何を含める必要がありますか? allegro_ttf.h のリンクに問題があるようです。私のインクルードにリンクするもののリストはどこかにありますか?

PS MSVC10 で allegro ソリューションを構築する際に他の誰かが問題を抱えている場合、これが私の問題のほとんどを解決したものです (これを除く): https://www.allegro.cc/forums/thread/611289

4

1 に答える 1