Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/142.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 叮当声_C++_Qt Creator_Clang - Fatal编程技术网

C++ 叮当声

C++ 叮当声,c++,qt-creator,clang,C++,Qt Creator,Clang,我试图使用QtCreator和Clang,但大多数情况下我没有收到任何错误消息 如果我写 // To provoke an error message int test(){ return "hi"; } Qt向我打印了以下内容 D:\Qt\qtcreator-2.6.1\bin\CTest\main.cpp:-1: In function 'int test()': :-1: error: [debug/main.o] Error 1 File not found 我自己编译了cl

我试图使用QtCreator和Clang,但大多数情况下我没有收到任何错误消息

如果我写

// To provoke an error message
int test(){
    return "hi";
}
Qt向我打印了以下内容

D:\Qt\qtcreator-2.6.1\bin\CTest\main.cpp:-1: In function 'int test()':
:-1: error: [debug/main.o] Error 1 File not found

我自己编译了clang,而且我得到了工作的二进制文件,只是没有错误消息。我用Clang.exe在QtCreator中选择了Clang编译器。

int test(){return“hi”}
顺便说一句,它看起来很讨厌。它是故意要看到错误消息的。升华与叮当声给出正确的错误信息啊好的,我不清楚,抱歉。