* pthreads win32 build errors on Microsoft Visual express
@ 2008-03-19 11:00 chirakara1974
2008-03-24 4:20 ` chirakara1974
2008-03-28 10:24 ` chirakara1974
0 siblings, 2 replies; 3+ messages in thread
From: chirakara1974 @ 2008-03-19 11:00 UTC (permalink / raw)
To: pthreads-win32
Hi All,
I am using the pthread libs and includes from the below link.
ftp://sourceware.org/pub/pthreads-win32/dll-latest
Have included
pthreadVCE2.lib and
pthreadVCE2.dll
and the
pthread.h , sched.h and semaphore.h in the Microsoft Visual Studio express
paths for include and libraries. I am using a simple threaded program.
But I am getting the below errors , please help me resolve them. Is there
anything else I need to include apart from these .
Any precompiler options and link lines etc. Have added the pthreadVCE2.lib
as well in the additional dependencies option of the linker still the error
are present. Please help.
{{{{------ Build started: Project: Ticktok, Configuration: Debug Win32
------
Linking...
mythread.obj : error LNK2019: unresolved external symbol
__imp__pthread_exit referenced in function _PrintHello
mythread.obj : error LNK2019: unresolved external symbol
__imp__pthread_create referenced in function _main
D:\Express0\Ticktok\Debug\Ticktok.exe : fatal error LNK1120: 2 unresolved
externals
Build log was saved at "file://d:\Express0\Ticktok\Debug\BuildLog.htm"
Ticktok - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
==========}}}}
Regards,
Kiran
--
View this message in context: http://www.nabble.com/pthreads-win32-build-errors-on-Microsoft-Visual-express-tp16142990p16142990.html
Sent from the Sourceware - pthreads-win32 list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pthreads win32 build errors on Microsoft Visual express
2008-03-19 11:00 pthreads win32 build errors on Microsoft Visual express chirakara1974
@ 2008-03-24 4:20 ` chirakara1974
2008-03-28 10:24 ` chirakara1974
1 sibling, 0 replies; 3+ messages in thread
From: chirakara1974 @ 2008-03-24 4:20 UTC (permalink / raw)
To: pthreads-win32
Please reply to this email . I am stuck here and there is something trivial
that is missing here. Looking forward to your help.
Thanking you,
Regards,
Kiran
--
View this message in context: http://www.nabble.com/pthreads-win32-build-errors-on-Microsoft-Visual-express-tp16142990p16245267.html
Sent from the Sourceware - pthreads-win32 list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: pthreads win32 build errors on Microsoft Visual express
2008-03-19 11:00 pthreads win32 build errors on Microsoft Visual express chirakara1974
2008-03-24 4:20 ` chirakara1974
@ 2008-03-28 10:24 ` chirakara1974
1 sibling, 0 replies; 3+ messages in thread
From: chirakara1974 @ 2008-03-28 10:24 UTC (permalink / raw)
To: pthreads-win32
Delighted I finally got it.....Silly it looks now ...
Got it from msdn posts here it is for anyone stuck on similar issues.
{{{
in VS 2005 the simplest way to link ur DLL to ur project is to goto project
properties by right clicking on it and the in the project property page
navigate to LINKER-->INPUT-->ADDITIONAL DPENDENCIES. Here u can specify
extra .lib files that ur project depends on.In General (just avobe INPUT)
option u have to specify the relative lib directory also.
}}}
Regards,
Kiran
chirakara1974 wrote:
>
> Hi All,
>
> I am using the pthread libs and includes from the below link.
>
> ftp://sourceware.org/pub/pthreads-win32/dll-latest
>
>
> Have included
>
>
> pthreadVCE2.lib and
> pthreadVCE2.dll
>
> and the
>
> pthread.h , sched.h and semaphore.h in the Microsoft Visual Studio
> express paths for include and libraries. I am using a simple threaded
> program.
>
> But I am getting the below errors , please help me resolve them. Is there
> anything else I need to include apart from these .
>
> Any precompiler options and link lines etc. Have added the
> pthreadVCE2.lib as well in the additional dependencies option of the
> linker still the error are present. Please help.
>
>
>
> {{{{------ Build started: Project: Ticktok, Configuration: Debug Win32
> ------
> Linking...
> mythread.obj : error LNK2019: unresolved external symbol
> __imp__pthread_exit referenced in function _PrintHello
> mythread.obj : error LNK2019: unresolved external symbol
> __imp__pthread_create referenced in function _main
> D:\Express0\Ticktok\Debug\Ticktok.exe : fatal error LNK1120: 2 unresolved
> externals
> Build log was saved at "file://d:\Express0\Ticktok\Debug\BuildLog.htm"
> Ticktok - 3 error(s), 0 warning(s)
> ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped
> ==========}}}}
>
>
>
>
>
> Regards,
>
> Kiran
>
>
>
>
--
View this message in context: http://www.nabble.com/pthreads-win32-build-errors-on-Microsoft-Visual-express-tp16142990p16349010.html
Sent from the Sourceware - pthreads-win32 list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-28 10:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-19 11:00 pthreads win32 build errors on Microsoft Visual express chirakara1974
2008-03-24 4:20 ` chirakara1974
2008-03-28 10:24 ` chirakara1974
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).