简体   繁体   中英

Does anyone knows how to configure Netbeans C++ compiler for OpenMP?

I am trying to run a simple parallel c++ code on Netbeans. just including omp.h does not work. any experiences? should I configure Netbeans somehow? I am using Cygwin compiler.

You need to pass the -fopenmp option to the compiler driver (ie g++). It will take care of enabling openmp support during compilation, and also pass for you the necessary linker options.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM