您的位置:首页 > 其它

allegro 5 visual studio 2010项目配置

2011-12-22 14:22 330 查看
假设你的allegro包解压在c:\allegro下,如在其他目录下,请做相应修改

For any project you create that uses Allegro 5, you must tell Visual C++ to link your project with the Allegro 5 library.
Right click your project under Solution Explorer on the right. Select Properties.

Under Configuration Properties->C/C++->General, enter c:\allegro\include in Additional Include Directories.

Under Configuration Properties->Linker->General, enter c:\allegro\lib in Additional Library Directories.

Under Configuration Properties->Linker->Input, append allegro-5.0.4-monolith-md-debug.lib to Additional Dependencies.

Under Configuration Properties->Debugging, enter PATH=c:\allegro\bin;%PATH% in Environment.

Click Apply.

Visual C++ can now link your project with the Allegro 5 library.
You should now select the "Release" configuration (upper left corner) and repeat the steps with one minor change: use the non-debug library allegro-5.0.4-monolith-md.lib.

转自allegro 5 wiki
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: