I'm trying to get an OpenMP application to compile using Qt Creator (SDK 2010.01) in Windows and after getting everything to compile, when I try to run the application I get an error message: "The program can't start because pthreadGC2.dll is missing from your computer. Try reinstalling the program to fix this problem." I figured this might just be a path issue so I did a search in the Qt installation folder for the missing dll and unfortunately it doesn't seem to be present. I was wondering if this is something that I need to compile independently and doesn't come packaged in Qt's mingw by default?
FYI, the pro file I'm using is:
#-------------------------------------------------
#
# Project created by QtCreator 2010-01-29T09:32:03
#
#-------------------------------------------------
QT -= gui
TARGET = OmpTest
CONFIG += console
CONFIG -= app_bundle
QMAKE_CXXFLAGS += -fopenmp
TEMPLATE = app
SOURCES += main.cpp
LIBS += -lgomp
#-------------------------------------------------
#
# Project created by QtCreator 2010-01-29T09:32:03
#
#-------------------------------------------------
QT -= gui
TARGET = OmpTest
CONFIG += console
CONFIG -= app_bundle
QMAKE_CXXFLAGS += -fopenmp
TEMPLATE = app
SOURCES += main.cpp
LIBS += -lgomp
To copy to clipboard, switch view to plain text mode
and the only source file is:
#include <omp.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
#pragma omp parallel
printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads());
}
#include <omp.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
#pragma omp parallel
printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads());
}
To copy to clipboard, switch view to plain text mode
Thanks in advance.
Bookmarks