为VS2017构建DLL项目时,Qmake在输出文件名后附加'1'

时间:2018-07-09 14:14:45

标签: c++ qt visual-studio-2017 qmake vcxproj

使用“ Qt Vs工具”插件从qmake .pro文件构建VS2017解决方案时遇到了一个问题。

当我试图指出我的输出文件是.dll时,我会感到困惑。

我已经设置了TEMPLATE = lib,并且没有在文件中的其他任何地方进行更改。根据{{​​3}}所讲的,我要做的就是将dll附加到CONFIG上。但是,当我这样做时:

  • 配置类型+目标扩展名正确(动态库/ .dll)
  • 文件名不正确-附加了“ 1”。 (output_file_name-> output_file_name1

如果我选择生成.lib,则这些错误均不存在。在Ubuntu 16.4上构建并使用CONFIG += plugin时,我没有注意到这些。

我在文件末尾的完整CONFIG值是: lex yacc debug exceptions depend_includepath testcase_targets import_plugins import_qpa_plugin windows file_copies qmake_use warn_on release link_prl flat debug_and_release debug_and_release_target precompile_header autogen_precompile_source embed_manifest_dll embed_manifest_exe shared release no_plugin_manifest win32 msvc copy_dir_files c++11 debug_and_release force_debug_info dll c++11 debug_and_release force_debug_info

我是否缺少/滥用标志?这种行为是故意的吗?如果是这样,为什么在文档中没有解决? 任何帮助将不胜感激。

0 个答案:

没有答案
相关问题