Hi.
I'm having some problems with OpenMP and Qt Creator. Everything I build that uses OpenMP seems to exit with code -1073741515.
Here's a small test that exits upon #pragma omp parallel. If I comment it out however, it works just fine.
#include <iostream>
#include <omp.h>
int main(int argc, char* argv[]) {
#pragma omp parallel
std::cout << "Hello, world!" << std::endl;
return 0;
}
#include <iostream>
#include <omp.h>
int main(int argc, char* argv[]) {
#pragma omp parallel
std::cout << "Hello, world!" << std::endl;
return 0;
}
To copy to clipboard, switch view to plain text mode
And here's my .pro file. It seems to find the library just fine:
TARGET = OpenMP
TEMPLATE = app
SOURCES += main.cpp
QMAKE_CXXFLAGS += -fopenmp
QMAKE_LFLAGS += -fopenmp
CONFIG += console
LIBS += -lgomp
TARGET = OpenMP
TEMPLATE = app
SOURCES += main.cpp
QMAKE_CXXFLAGS += -fopenmp
QMAKE_LFLAGS += -fopenmp
CONFIG += console
LIBS += -lgomp
To copy to clipboard, switch view to plain text mode
Any ideas?
Bookmarks