食人魔构建错误 -- "cannot find -lOgreMain_d.dll"



我按照这里的指示操作:http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Setting+Up+An+Application+-+CodeBlocks

然后我收到此错误:

c:/program files/codeblocks/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../mingw32/bin/ld.exe: cannot find -lOgreMain_d.dll

我有OgreMain,OIS,OgreMain_d,OIS_d放在我的项目文件夹中。我该如何解决这个问题?:(

这可能主要是由于两个原因。

  • dll 尚未编译和创建。
  • 在链接器设置中,要链接的 dll 搜索路径或 dll 名称错误。

请检查是否已在 OGRE bin 文件夹中创建了OgreMain_d.dll,如果是,请确认链接器搜索设置。还要确认该项目不在发布构建配置中,因为创建的 dll 将是 OgreMain.dll。

最新更新