This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/39939] New: MinGW 4.3.0 fails to link sample programme.
- From: "julian1844 at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Apr 2009 06:35:17 -0000
- Subject: [Bug libgomp/39939] New: MinGW 4.3.0 fails to link sample programme.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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