Qt msvc2015 32 bit binaries with msvc 2017 32 bit compiler

I need to compile my code with msvc 2017 32 bit compiler. There no pre built binaries of Qt for that compiler. However there are binary compatibility between msvc 2015 and 2017. So I have installed Qt msvc 2015 32 bit binaries. Qt Creator gives me the following warning while I trying to adjust Kits: The compiler "Microsoft Visual C++ Compiler 15.0 (x86)" (x86-windows-msvc2017-pe-32

Qt msvc2015使用msvc 2017 32位编译器的32位二进制文​​件

我需要用msvc 2017 32位编译器编译我的代码。 没有为该编译器预编译Qt的二进制文件。 但是,在msvc 2015和2017之间有二进制兼容性。所以我已经安装了Qt msvc 2015 32位二进制文​​件。 Qt Creator在尝试调整套件时给了我以下警告: 编译器“Microsoft Visual C ++编译器15.0(x86)”(x86-windows-msvc2017-pe-32位)可能不会产生与Qt版本“Qt 5.9.2 MSVC2015 32位”(x86-windows-msvc2015- PE-32位) 建筑时: 运行Window

How to use Clang as a compiler with Qt Creator on Windows?

I've installed Qt SDK with Qt Creator on my Windows 7. LLVM & Clang installed as well. CMake was already installed. Afterwards added Clang as a compiler into: Tools -> Options... -> Build & Run -> Compilers Then I've created Clang kit. However while creating new project (simple console application) I've no ability to choose Clang kit. There are only autodetected

如何在Windows上使用Clang作为Qt Creator的编译器?

我已经在我的Windows 7上安装了Qt Creator的Qt SDK。LLVM&Clang也已安装。 CMake已经安装。 之后将Clang作为编译器添加到:Tools - > Options ... - > Build&Run - > Compilers 然后我创建了Clang套件。 然而,在创建新项目(简单控制台应用程序)时,我无法选择Clang套件。 只有自动检测MSVC套件。 也许问题是Clang工具包中的“Qt版本”是空的。 但是从哪里获得qmake呢? 你还应该有一个合适的编译Qt库

How to configure a compiler in Qt Creator?

I have tried to compile some C++ code in Qt Creator, however I am getting this error message: :-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options. How do I go about configuring a compiler in the kit options? Here is a link to the Qt documentation that talks about adding kits. and Here is a similar question asked in the Qt forums.

如何在Qt Creator中配置编译器?

我试图在Qt Creator中编译一些C ++代码,但是我收到了以下错误消息: :-1:错误:Qt Creator需要一个设置为编译的编译器。 在工具包选项中配置一个编译器。 如何在套件选项中配置编译器? 这里有一个Qt文档的链接,介绍添加工具包的情况。 这是在Qt论坛中提出的类似问题。

Missing compiler in Qt Creator

I recently installed Qt creator 2.8.1 online on my win Vista 32 bit machine. To start with Qt I wrote simple pushbutton code. And when I tried to build it shows error message saying Qt Creator needs compiler set up to build. Configure a compiler in kit option I tried with that Kit option din't work. what do I do? PS Thank You Simply refer to MINGW online install available at Qt&#

在Qt Creator中缺少编译器

我最近在我的win Vista 32位机器上安装了Qt creator 2.8.1在线。 从Qt开始,我写了简单的按钮代码。 当我试图建立它显示错误消息说 Qt Creator需要编译器建立起来。 在套件选项中配置编译器 我尝试使用该套件选项不起作用。 我该怎么办? PS谢谢 只需参阅Qt官方下载中提供的MINGW在线安装(http://download.qt-project.org/)。 你不需要做任何事情。 它会自动检测套件并成功编译。

How to use Qt5 and Qt Creator 2.6.1 with compiler from VS 2012?

The official downloads only include Qt libraries 5.0.0 for VS 2010 now. I tried them in VS 2012 Express but got an error message as "error: LNK2038: mismatch detected for '_MSC_VER': value '1600' doesn't match value '1700'..." Do I have to install VS 2010 or compile the entire source code of Qt5 in VS 2012? UPDATE: My IDE is Qt Creator 2.6.1. I only use

如何通过VS 2012的编译器使用Qt5和Qt Creator 2.6.1?

官方下载版本现在只包含用于VS 2010的Qt库5.0.0。 我在VS 2012 Express中尝试了它们,但收到了错误消息:“错误:LNK2038:'_MSC_VER'检测到不匹配:值'1600'与值'1700'不匹配...” 我是否必须安装VS 2010或在VS 2012中编译Qt5的完整源代码? 更新:我的IDE是Qt Creator 2.6.1。 我只在VS 2012中使用C ++编译器,因为官方下载中还没有用于minGW的Qt库5.0.0。 UPDATE-2(2013-1-1):今天看到这个

VC++ compiler for Qt Creator

I want to use the VC++ toolset to build programs for XP and Vista, but I do not want to buy the IDE, because I want to use Qt Creator. I would download the Windows SDK and the Windows Debugging Tools, but I'm not sure if this includes everything that I need (ie: compiler, linker, nmake, debuggers). Has anyone used this approach? How did it go? Note: I know about VC++ Express, but that v

用于Qt Creator的VC ++编译器

我想使用VC ++工具集为XP和Vista构建程序,但我不想购买IDE,因为我想使用Qt Creator。 我会下载Windows SDK和Windows调试工具,但我不确定这是否包含我需要的所有东西(即:编译器,链接器,nmake,调试器)。 有没有人使用过这种方法? 它是如何去的? 注意:我知道VC ++ Express,但该版本的编译器具有禁用AFAIK的某些功能。 稍后编辑: 我想知道在下载2GB数据之前是否可以使用SDK + Debugtools。 个人经验受到高

Classes Exceptions and Operators

I am having some trouble getting a lot of the operators to work The instruction for the assignment is as follows The purpose of this assignment is to work with exceptions. As you may recall, I have provided you with a sample class named FlashDrive which has been diagrammed below. You can acquire the source to the FlashDrive class here ( .NET or .NET 2010) I'd like you to enhance this cl

类异常和操作符

我很难让很多操作员工作 分配说明如下 这项任务的目的是处理例外情况。 您可能还记得,我已经为您提供了一个名为FlashDrive的示例类,该示例的示例如下。 您可以在此获取FlashDrive类的源代码(.NET或.NET 2010)我希望您能够增强此类,以便调用其方法或操作符可能会引发异常,而不仅仅是将错误消息打印到cout。 目前,我们最喜欢的异常类是std :: logic_error。 您可以通过将字符串值传递给其构造函数来创建logic_error

Template class generate errors in C++

This program is not compiling. What's the problem? #include<iostream> #include<map> using namespace std; template<class T>class Data{ string header; T data; public: Data(string h, T d){header = h, data = d;} void WriteData() { cout<<header<<": "<<data<<endl; } }; int main(int argc, _TCHAR* argv[]) { Data<int

模板类在C ++中产生错误

这个程序没有编译。 有什么问题? #include<iostream> #include<map> using namespace std; template<class T>class Data{ string header; T data; public: Data(string h, T d){header = h, data = d;} void WriteData() { cout<<header<<": "<<data<<endl; } }; int main(int argc, _TCHAR* argv[]) { Data<int> idata("Roll", 100)

Error C2664 in hid

std::string get_path( void ) { return m_devicePath; } Debug output: hid_device.h(37) : error C2664: >'std::basic_string<_Elem,_Traits,_Ax>::basic_string(std::basic_string<_Elem,_Traits,_Ax>::>_Has_debug_it)' : cannot convert parameter 1 from 'unsigned long' to >'std::basic_string<_Elem,_Traits,_Ax>::_Has_debug_it' with [ _Elem=char, _Traits=std

隐藏错误C2664

std::string get_path( void ) { return m_devicePath; } 调试输出: hid_device.h(37):error C2664:>'std :: basic_string <_Elem,_Traits,_Ax> :: basic_string(std :: basic_string <_Elem,_Traits,_Ax> ::> _ Has_debug_it)':无法将参数1从'unsigned long'to>'std :: basic_string <_Elem,_Traits,_Ax> :: _ Has_debug_it'with [_Elem = char,_Traits =

TCLAP issus with parsing std::wstring

TCLAP std::wstring issue. Hello All, I am using TCLAP(command line parsing utility). It has worked well so far until I ran into issues with wstring processing capability. I have the below line to parse code for an UnlabeledValueArg std::wstring defaultValue; UnlabeledValueArg<std::wstring> serverName("COMPUTERNAME", "List all scheduled tasks of computer", false, defaultV

TCLAP issus解析std :: wstring

TCLAP std::wstring问题。 大家好, 我正在使用TCLAP(命令行解析实用程序)。 到目前为止,它运行良好,直到遇到带有wstring处理能力的问题。 我有下面一行来解析UnlabeledValueArg的代码 std::wstring defaultValue; UnlabeledValueArg<std::wstring> serverName("COMPUTERNAME", "List all scheduled tasks of computer", false, defaultValue, "string" ); 我遇到编译时问题(Visual Studio吐出