Details
-
Bug
-
Resolution: Done
-
P4: Low
-
Qt Creator 3.5.0
-
None
-
Windows, x86-64
-
6bb78124abaf6493c3f76444ef3179bbdea01cbc
Description
When I create new project using "New File or Project..." -> "Non-Qt Project" -> "Plain C++ Project" it generates source file where main function defined as such:
int main() {
...
}
Environment command line arguments are missing. Correct definition should look like:
int main(int argc, char *argv[]) { ... }
Such code breaks execution after return from main() to CRT and in some circumstances causes application to crash on exit (depends on platform, runtime version, compiler ABI, etc...)