请教有关Xtreme ToolkitPro的问题

ystemni 2011-12-20 10:01:36
安装后编译时报warning MSB8012: ……请确保$<OutDir>、$<TargetName>和$<TargetExt>属性值与%<Lib.OutputFile>中指定的值匹配。

安装时选择的以静态库连接(As static library - for applications using MFC as static library),运行示例时,以static library方式debug/release均报错(需要以share dll编译);以share dll方式debug正常,release报错(无法打开lib文件)。

请问是什么原因?如何解决?
一定要以static library/release方式运行,毕竟客户端不可能全装mfc啊。
...全文
188 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
ystemni 2011-12-20
  • 打赏
  • 举报
回复
多谢3楼,结帖。
战在春秋 2011-12-20
  • 打赏
  • 举报
回复
不好意思,第4点格式发错了:
4、Add the following line to your application's .rc2 file. This will link in the toolkit resources so they are available to your application.
Xtreme Toolkit Pro:
#include <XTToolkitPro.rc>
Xtreme Suite:
#include <XTSuitePro.rc>
战在春秋 2011-12-20
  • 打赏
  • 举报
回复
官方帮助对静态编译连接有详细说明,楼主可参考下文:
Question:

How do I statically link with Xtreme Toolkit Pro and when statically linked to MFC?
Answer:
Follow these steps to statically link with the Xtreme Toolkit Professional Version:
1、Change your project settings to “Use MFC in a Static Library”. This is found on the “General” tab in your project settings dialog.
2、Change your “C/C++ Code Generation” to use either “Multithreaded” or “Debug Multithreaded” run-time library. For release builds use the “Multithreaded” (non DLL) run-time library. For debug builds use “Debug Multithreaded” (non DLL) run-time library.
3、Some libraries are incompatible when statically linking to MFC. On the link tab under input settings you will need to ignore the following libraries.
For “Multithreaded” add the following to the “Ignore libraries” list:
libc.lib, msvcrt.lib, libcd.lib, libcmtd.lib, msvcrtd.lib
For “Debug Multithreaded” add the following to the “Ignore libraries” list:
libc.lib, libcmt.lib, msvcrt.lib, libcmtd.lib, msvcrtd.lib
See Linker Tools Warning LNK4098 in MSDN for more details.
4、Add the following line to your application's .rc2 file. This will link in the toolkit resources so they are available to your application.
Xtreme Toolkit Pro:
[color=#FF0000]#include <XTToolkitPro.rc>

Xtreme Suite:
#include <XTSuitePro.rc>[/color]
shen_wei 2011-12-20
  • 打赏
  • 举报
回复
那你打包软件成exe,VS的安装部署!!

15,979

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 界面
社区管理员
  • 界面
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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