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 target/39939] MinGW 4.3.0 fails to link sample programme.



------- Comment #9 from dannysmith at users dot sourceforge dot net  2009-04-30 20:57 -------
(In reply to comment #6)
> (In reply to comment #4)
> > Your libpthreads is doing something wrong.
> > Re. comment 5
> The command was actually
> gcc -fopemnp test.c -lgomp -o test.exe
> 

That command works for me with gcc 4.3.4, 4.4.0 and trunk
In 4.4.0 and trunk, test.exe links against LIBGOMP-1.DLL which in turn resolves
the pthread imports from PTHREADGCE2.DLL, which is distributed by the
pthreads-win32 project
http://sources.redhat.com/pthreads-win32/

My version of 4.3.4 has local mods.  I'm not sure if the shared libgomp build
was standard then.

How did you build gcc-4.3.0?  You need to add  --enable-libgomp to configure
and ensure that libpthread.a (note spelling) can be found.

Danny


-- 


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]