With gcc, you need to compile and link with -fopenmp
to enable OpenMP. Other compilers have different options; with intel it’s -openmp
, with pgi it’s -mp
, etc.
More Related Contents:
- Change stack size for a C++ application in Linux during compilation with GNU compiler
- What is the -fPIE option for position-independent executables in gcc and ld?
- The advantages of using 32bit registers/instructions in x86-64
- Telling gcc directly to link a library statically
- LD_LIBRARY_PATH vs LIBRARY_PATH
- How to suppress GCC warnings from library headers?
- How do I force make/GCC to show me the commands?
- Vectorizing with unaligned buffers: using VMASKMOVPS: generating a mask from a misalignment count? Or not using that insn at all
- GNU gcc/ld – wrapping a call to symbol with caller and callee defined in the same object file
- Calling printf in extended inline ASM
- How to specify new GCC path for CMake
- How do I check if gcc is performing tail-recursion optimization?
- How Does The Debugging Option -g Change the Binary Executable?
- Error enabling openmp – “ld: library not found for -lgomp” and Clang errors
- exit.c:(.text+0x18): undefined reference to `_exit’ when using arm-none-eabi-gcc
- How to cross compile from Mac OS X to Linux x86?
- Selectively remove a warning message using GCC
- How to Install gcc 5.3 with yum on CentOS 7.2?
- how to install gcc on windows 7 machine?
- How to specify non-default shared-library path in GCC Linux? Getting “error while loading shared libraries” when running
- gcc/g++ option to place all object files into separate directory
- How to make gcc warn about passing wrong enum to a function
- How to detect SSE/SSE2/AVX/AVX2/AVX-512/AVX-128-FMA/KCVI availability at compile-time?
- -isystem on a system include directory causes errors
- Does a compiler always produce an assembly code?
- Mac OS X R error “ld: warning: directory not found for option”
- What is the difference between “gcc -s” and a “strip” command?
- Understanding GCC’s floating point constants in assembly listing output
- Why gcc 4.1 + gcov reports 100% branch coverage and newer (4.4, 4.6, 4.8) reports 50% for “p = new class;” line?
- clang (LLVM) inline assembly – multiple constraints with useless spills / reloads