oh sorry, i didn't know you wanted to see the build log. Here is the program, and build log. I'm using Windows 7.
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>
void hello();
int main()
{
int threadCount = 4
#pragma omp parallel num_threads(threadCount)
hello();
return 0;
}
void hello(){
int myRank = omp_get_thread_num();
int threadCount = omp_get_num_threads();
printf("thread %d of %d\n", myRank, threadCount);
}
-------------- Build: Debug in OpenMPTest (compiler: GNU GCC Compiler)---------------
mingw32-gcc.exe -Wall -g -c C:\MyHomeComputer\MyCppProjects\OpenMPTest\main.c -o obj\Debug\main.o
C:\MyHomeComputer\MyCppProjects\OpenMPTest\main.c: In function 'main':
C:\MyHomeComputer\MyCppProjects\OpenMPTest\main.c:11:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
#pragma omp parallel num_threads(threadCount)
^
C:\MyHomeComputer\MyCppProjects\OpenMPTest\main.c:12:4: error: expected ',' or ';' before 'hello'
hello();
^
C:\MyHomeComputer\MyCppProjects\OpenMPTest\main.c:10:8: warning: unused variable 'threadCount' [-Wunused-variable]
int threadCount = 4
^
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 2 warning(s) (0 minute(s), 0 second(s))