The procedure entry point could not be located in qtcore4.dll

wuyg719 2013-04-17 02:15:00
我有一个很简单的QT小程序,在QT creator2.4.1里编译运行都很正常,所以我想在命令行运行它,出现一个错误:

The program can't start because QTCored4.dll is missing from your computer. Try reinstalling the ptogram to fix this problem.

搜索了一下,在QT creator根本没有QTCored4.dll,在网上找了一下,说是QTCored4.dll是QTCore4.dll的调试版本,所以我将QTCore4.dll拷贝到目标目录,重命名到QTCored4.dll,重新运行,这次出现如下错误:
The procedure entry point _Z13qFlagLocationPKc could not be located in the dynamic link library QtCored4.dll.

我换成release版本,将QTCore4.dll再次拷贝到目标目录,这次出现如下错误:
The procedure entry point _Z5qFreePv could not be located in the dynamic link library QtCored4.dll.
将QtGui4.dll拷贝到目标目录,还是出现上述错误。

请问如何解决上述问题?


QT Creator 版本:
Qt Creator 2.4.1 Based on Qt 4.7.4 (32 bit)

环境: Windows 7 64 bit


...全文
502 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
jdwx 2013-04-17
  • 打赏
  • 举报
回复
windows开始按钮->Qt4.7.4->Qt 4.7.4 Command Prompt 在那个控制台里运行就会正常,因为这个控制台设置了Qt的环境变量。
引用 楼主 wuyg 的回复:
我有一个很简单的QT小程序,在QT creator2.4.1里编译运行都很正常,所以我想在命令行运行它,出现一个错误: The program can't start because QTCored4.dll is missing from your computer. Try reinstalling the ptogram to fix this pro……

16,816

社区成员

发帖
与我相关
我的任务
社区描述
Qt 是一个跨平台应用程序框架。通过使用 Qt,您可以一次性开发应用程序和用户界面,然后将其部署到多个桌面和嵌入式操作系统,而无需重复编写源代码。
社区管理员
  • Qt
  • 亭台六七座
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧