From: Fibre Optic <fibre_optic@go2.pl>
To: pthreads-win32@sources.redhat.com
Subject: pthreads-win32 and linking problem
Date: Wed, 28 Sep 2005 03:03:00 -0000 [thread overview]
Message-ID: <433A07F8.4070202@go2.pl> (raw)
Hello All,
I am a newbe here in multi thread programing and I have such a problem:
I downloaded thread sources from CVS then I compiled all under msys with
" make clean GC-static. Compilation went fine and I got libpthreadGC2.a
file. I wrote small code but during compilation/linking I receive such
a message:
main.o:main.cpp:(.text+0xbd): undefined reference to `_imp__pthread_create'
main.o:main.cpp:(.text+0xe2): undefined reference to `_imp__pthread_create'
main.o:main.cpp:(.text+0xfe): undefined reference to `_imp__pthread_join'
main.o:main.cpp:(.text+0x11a): undefined reference to `_imp__pthread_join'
make.exe: *** [test.exe] Error 1
I added *.a library to my linker command but even this I have above
mentioned message :-( Could someone put some light on this issue ? How
to fix this ?
Regards,
Fibre Optic
reply other threads:[~2005-09-28 3:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=433A07F8.4070202@go2.pl \
--to=fibre_optic@go2.pl \
--cc=pthreads-win32@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).