From: "Milan Gornik" <milan.gornik@dmsgroup.co.yu>
To: <pthreads-win32@sourceware.org>
Subject: pThreads 2.8.0 build with VS 2005 (VC 8)
Date: Thu, 06 Dec 2007 15:27:00 -0000 [thread overview]
Message-ID: <00fb01c831be$10373560$8f00a8c0@dms.local> (raw)
I have Microsoft Visual Studio 2005 / Visual C++ 8. I tried to build
pThreads library v2.8.0 from the source code and had some problems.
Following configurations don't build successfully:
1) nmake clean vce
Creating library pthreadVCE2.lib and object pthreadVCE2.exp
misc.obj : error LNK2019: unresolved external symbol _ptw32_mcs_lock_release
referenced in function "void __cdecl ptw32_once_on_init_cancel(void *)"
(?ptw32_once_on_init_cancel@@YAXPAX@Z)
misc.obj : error LNK2019: unresolved external symbol _ptw32_mcs_lock_acquire
referenced in function _pthread_once
mutex.obj : error LNK2019: unresolved external symbol _ptw32_relmillisecs
referenced in function "int __cdecl ptw32_timed_eventwait(void *,struct
timespec const *)" (?ptw32_timed_eventwait@@YAHPAXPBUtimespec@@@Z)
semaphore.obj : error LNK2001: unresolved external symbol
_ptw32_relmillisecs
pthreadVCE2.dll : fatal error LNK1120: 3 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\nmake.EXE"' : return code '0x2'
Stop.
2) nmake clean vce-debug
Creating library pthreadVCE2d.lib and object pthreadVCE2d.exp
misc.obj : error LNK2019: unresolved external symbol _ptw32_mcs_lock_release
referenced in function _pthread_once
misc.obj : error LNK2019: unresolved external symbol _ptw32_mcs_lock_acquire
referenced in function _pthread_once
mutex.obj : error LNK2019: unresolved external symbol _ptw32_relmillisecs
referenced in function "int __cdecl ptw32_timed_eventwait(void *,struct
timespec const
*)" (?ptw32_timed_eventwait@@YAHPAXPBUtimespec@@@Z)
semaphore.obj : error LNK2001: unresolved external symbol
_ptw32_relmillisecs
pthreadVCE2d.dll : fatal error LNK1120: 3 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
8\VC\BIN\nmake.EXE"' : return code '0x2'
Stop.
Other configurations are building successfully, with some warnings though.
Is this a known issue? Are there known workarounds? Or, am I just missing to
set enivornment properly before build?
Regards,
Milan Gornik
reply other threads:[~2007-11-28 12:56 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='00fb01c831be$10373560$8f00a8c0@dms.local' \
--to=milan.gornik@dmsgroup.co.yu \
--cc=pthreads-win32@sourceware.org \
/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).