LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

#omp invalid preprocessing directive

I am trying to learn about OpenMP programming using LabWindows\CVI.  So I search the Discussion Forum an found this code fragment.

 

#omp parallel for
  for (int i = 0; i < 10000; i++)
   printf ("Iteration %d executed by thread %d\n", i, omp_get_thread_num());
 
When I build it, I get an error "invalid preprocessing directive".  I have include omp.h and have enable OpenMP_support in the Build Options.
 
What else needs to be done?
 
Thanks,
 
Paul
0 Kudos
Message 1 of 2
(1,015 Views)

Never mind, I have found what I needed.

0 Kudos
Message 2 of 2
(998 Views)