Version: 5.11 with TDM-GCC 4.9.2 64-bit
OS version: Windows 7
Error reported: main.c:(.text+0x2d): undefined reference to `GOMP_parallel'
Stack trace:
Steps needed to reproduce the problem:
#include <stdio.h> #include <stdlib.h> #include <omp.h> int main(int argc, char *argv[]) { #pragma omp parallel { printf("Hello, world.\n"); } return 0; }
I have added -fopenmp flag in the compiler option.
That might be an issue with the used GCC or you did something wrong. This or that way this is surely not linked anyhow to dev-cpp. Voting to close.
i aggree with exxoo. there might be other that is link with that #include<omp.h>. Voting to close