This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgomp/39939] New: MinGW 4.3.0 fails to link sample programme.


Sample program test.c
#include <omp.h>
#include <stdlib.h>
#include <stdio.h>
int main() {
#pragma omp parallel
printf("Hello from thread %d, nthreads %d\n", omp_get_thread_num(),
omp_get_num_threads());
return 0;}
fails to link with MinGW 4.3.0 (windows xp sp2), command
gcc -fopemnp test.c -lpthreads -o test.exe
issuing error message
c:/mingw/bin/../lib/gcc/mingw32/4.3.0/libgomp.a(parallel.o):(.text+0xe):
undefined reference to `_imp__pthread_getspecific'
(more similar messages follow). Importing from dll expects prefix __imp__
instead.


-- 
           Summary: MinGW 4.3.0 fails to link sample programme.
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgomp
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: julian1844 at yahoo dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39939


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]