Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to find Bug in Qt!!
I have compiled my project and have some errors, but I can not find where the code has a problem. I know the errors are from the stl library(vetor, pair, tuple), but I've used a lot of this library in my project and Qt does not show any problems.. Have a solution?
What version of Qt are you using ?
What compiler is it ?
What's in the offending part of your code ?
Qt Creator 4.3.1
Qt 5.9.0 MinGW 32 bit
some classes I use stl container. for example
fcarney last edited by
According to those docs it is a template for classes not "int". Am I reading that right?
it seems to come from smart_algorithm.cpp line 47
@Saeed_Nowroozi Please show your smart_algorithm.cpp from where the error is actually coming.
Saeed_Nowroozi last edited by Saeed_Nowroozi
thanks, this is class smart_alg. classes are not finished.
and these are .cpp code.
@Saeed_Nowroozi __smart_alg() has a return value but there is no return.
__countingalso expects a return value.
so you write
so std::vector<int,int> which makes it think you give it a custom allocator but
then it gets unhappy as an int is not expected type at all or related to std::allocator.
In any case, it does actually tell where the error comes from, so it's important to read it carefully to spot the place
that starts the chain of ugly errors.
problem is solved.