标签:
所以死活解决不了引入外部库的LPCWSTR参数传递问题。而用VS新建的项目,就没有这个问题。
我怀疑是当初.pro文件产生VC项目文件时候,做了一些设置,但是内容太长了,又很复杂,所以没法核对。
用VS新建一个Qt项目,然后导入项目所有的.h .cpp .ui 和资源文件,问题解决。但是又来了新的问题:
_plugin_import.obj : error LNK2019: unresolved external symbol "struct QStaticPlugin const __cdecl qt_static_plugin_AccessibleFactory(void)" (?qt_static_plugin_AccessibleFactory@@YA?BUQStaticPlugin@@XZ) referenced in function "public: __thiscall StaticAccessibleFactoryPluginInstance::StaticAccessibleFactoryPluginInstance(void)" (??0StaticAccessibleFactoryPluginInstance@@QAE@XZ)
_plugin_import.obj : error LNK2019: unresolved external symbol "struct QStaticPlugin const __cdecl qt_static_plugin_QGenericEnginePlugin(void)" (?qt_static_plugin_QGenericEnginePlugin@@YA?BUQStaticPlugin@@XZ) referenced in function "public: __thiscall StaticQGenericEnginePluginPluginInstance::StaticQGenericEnginePluginPluginInstance(void)" (??0StaticQGenericEnginePluginPluginInstance@@QAE@XZ)
_plugin_import.obj : error LNK2019: unresolved external symbol "struct QStaticPlugin const __cdecl qt_static_plugin_QNativeWifiEnginePlugin(void)" (?qt_static_plugin_QNativeWifiEnginePlugin@@YA?BUQStaticPlugin@@XZ) referenced in function "public: __thiscall StaticQNativeWifiEnginePluginPluginInstance::StaticQNativeWifiEnginePluginPluginInstance(void)" (??0StaticQNativeWifiEnginePluginPluginInstance@@QAE@XZ)
_plugin_import.obj : error LNK2019: unresolved external symbol "struct QStaticPlugin const __cdecl qt_static_plugin_QWindowsIntegrationPlugin(void)" (?qt_static_plugin_QWindowsIntegrationPlugin@@YA?BUQStaticPlugin@@XZ) referenced in function "public: __thiscall StaticQWindowsIntegrationPluginPluginInstance::StaticQWindowsIntegrationPluginPluginInstance(void)" (??0StaticQWindowsIntegrationPluginPluginInstance@@QAE@XZ)
_plugin_import.obj : error LNK2019: unresolved external symbol "struct QStaticPlugin const __cdecl qt_static_plugin_QICOPlugin(void)" (?qt_static_plugin_QICOPlugin@@YA?BUQStaticPlugin@@XZ) referenced in function "public: __thiscall StaticQICOPluginPluginInstance::StaticQICOPluginPluginInstance(void)" (??0StaticQICOPluginPluginInstance@@QAE@XZ)
浪费了1天多的时间,算了,不研究了。准备用新建一个QT5的项目,然后用VS的QT插件重新转化成VC项目。
新的疑问(未解决):VC项目的配置,不是都能在Project -- Properties里设置解决的
标签:
原文地址:http://www.cnblogs.com/findumars/p/4833860.html