Reputation: 643
Earlier in the day, every thing worked nice as hell, suddenly it all broke.
#include <QtGui/QApplication>
int main(int argc, char** argv) {
QApplication app {argc, argv};
}
Compile with g++ main.cpp -lQtCore -lQtGui -I/usr/include/qt4
, gives me a segfault, and I have no clue why.
I have made some investigation on the matter, and it seems that something may be wrong with either argc
or argv
, but earlier in the day this didn't happen at all.
Upvotes: 0
Views: 341