I managed to find the problem. It was linking against different libraries from different matlab versions. After cleaning that up and making sure all the libraries are from 2018a, now the program seg faults at application.exec
#include <QApplication>
int main(int argc, char **argv)
{
QApplication application(argc, argv);
return application.exec();
}
