Menu

#173 openmp does not work

open
nobody
openmp (1)
2016-12-10
2015-10-02
qiangbo
No

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.

Discussion

  • exxoo

    exxoo - 2015-10-03

    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.

     
  • thagneill

    thagneill - 2016-12-10

    i aggree with exxoo. there might be other that is link with that #include<omp.h>. Voting to close

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.