Witam forumowiczów,
Mam pewien problem z kompilacją programu OpenMP na Netbeansie pod Windowsem. Zainstalowałem MinGW z kompilatorami gcc i msys. Kompilator zwraca błąd przy kompilacji pliku:
"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/e/netbins/Test_C'
"/C/MinGW/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk dist/Debug/MinGW-Windows/test_c.exe
make.exe[2]: Entering directory `/e/netbins/Test_C'
mkdir -p dist/Debug/MinGW-Windows
gcc -fopenmp -o dist/Debug/MinGW-Windows/test_c build/Debug/MinGW-Windows/main.o -fopenmp
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: cannot find -lpthread
collect2.exe: error: ld returned 1 exit status
make.exe[2]: *** [dist/Debug/MinGW-Windows/test_c.exe] Error 1
make.exe[2]: Leaving directory `/e/netbins/Test_C'
make.exe[1]: *** [.build-conf] Error 2
make.exe[1]: Leaving directory `/e/netbins/Test_C'
make.exe": *** [.build-impl] Error 2
Tak więc czy da się zrobić tak, aby pragma omp działała pod windowsem?
W pliku libgomp.spec zmieniałem zawartość na inną niż domyślna:
*link_gomp: -lgomp %{static: }
na taką:
*link_gomp: -lgomp -lpthread
Czy ktoś zrobił to tak, aby netbeans kompilował pliki pisane w C z użyciem OPENMP?
vpiotr