help with openmp compilation problems
I'm trying to use omp in my C code and am having a problem: in the code i have #include but when i try to compile with:
g++ -fopenmp -g -c parallel.c
I get cc1plus: error: unrecognized command line option "fopenmp" and when i try:
g++ -g -c parallel.c
I get an error for both:
omp.h: No such file or directory, and m开发者_如何转开发alloc not declared in this scope
i tried with gcc with -fopenmp and get the same error. without the -fopenmp i still get the missing omp.
OpenMP is only supported in gcc 4.2 and higher. You might need to upgrade your compiler.
精彩评论