public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
* Newbie trying to build statically linkable lib.
@ 2007-08-10 13:33 Varun Jobanputra
  2007-08-18  7:20 ` Robert Kindred
  0 siblings, 1 reply; 2+ messages in thread
From: Varun Jobanputra @ 2007-08-10 13:33 UTC (permalink / raw)
  To: pthreads-win32

Hi, 
 
I am a total newbie !! so please excuse my stupid
question... 
 
I was able to use Win32 pthreads as a DLL. Everything
was perfect.
 
But for easier distribution of my program I want to
link it statically. 
 
So I downloaded pthreads-w32-2-8-0-release.exe and
extracted all the files in C:\pthreads. 
 
I then went to C:\pthreads\pthreads.2 and ran "nmake
clean VC-static". However, I get the following error:
 
c:\pthreads\pthreads.2\pthread.h(218) : fatal error
C1083: Cannot open include file: 'time.h': No such
file or directory
 
1) So it is ofcourse not able to find time.h whilch
lies in MSVC include folder C:\Program Files\Microsoft
Platform SDK for Windows Server 2003 R2\Include. Can
anyone please tell me what exactly do I need to do
here ?
 
2) Do I need to add all the pthread source files
(which I downloaded and extracted),  to my project ?
 
3) So, I guess once nmake succeeds, it will create
pthreadVCn.lib. Then what do I need to do with it ?
Just copy paste it to the MSVC lib directory ? 
 
I would really appreciate if someone can help me out
here !!!!
 
Thanks and regards,
VJ.


      Did you know? You can CHAT without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php/ 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: Newbie trying to build statically linkable lib.
  2007-08-10 13:33 Newbie trying to build statically linkable lib Varun Jobanputra
@ 2007-08-18  7:20 ` Robert Kindred
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Kindred @ 2007-08-18  7:20 UTC (permalink / raw)
  To: Varun Jobanputra, pthreads-win32

Are you using Visual Studio 2005?  I built a project in that, by 
adding pthread.c and pthread.h to a project.  Then put "." in 
the additional includes path.

There are additional things you have to do to link statically.  
It has been so long that I forgot what they are.  I put them 
in my constructors and destructors, but I don't know if you 
are programming in C or C++.

hth,       Robert Kindred

> -----Original Message-----
> From: pthreads-win32-owner@sourceware.org
> [mailto:pthreads-win32-owner@sourceware.org]On Behalf Of Varun
> Jobanputra
> Sent: Thursday, August 09, 2007 9:33 PM
> To: pthreads-win32@sourceware.org
> Subject: Newbie trying to build statically linkable lib.
> 
> 
> Hi, 
>  
> I am a total newbie !! so please excuse my stupid
> question... 
>  
> I was able to use Win32 pthreads as a DLL. Everything
> was perfect.
>  
> But for easier distribution of my program I want to
> link it statically. 
>  
> So I downloaded pthreads-w32-2-8-0-release.exe and
> extracted all the files in C:\pthreads. 
>  
> I then went to C:\pthreads\pthreads.2 and ran "nmake
> clean VC-static". However, I get the following error:
>  
> c:\pthreads\pthreads.2\pthread.h(218) : fatal error
> C1083: Cannot open include file: 'time.h': No such
> file or directory
>  
> 1) So it is ofcourse not able to find time.h whilch
> lies in MSVC include folder C:\Program Files\Microsoft
> Platform SDK for Windows Server 2003 R2\Include. Can
> anyone please tell me what exactly do I need to do
> here ?
>  
> 2) Do I need to add all the pthread source files
> (which I downloaded and extracted),  to my project ?
>  
> 3) So, I guess once nmake succeeds, it will create
> pthreadVCn.lib. Then what do I need to do with it ?
> Just copy paste it to the MSVC lib directory ? 
>  
> I would really appreciate if someone can help me out
> here !!!!
>  
> Thanks and regards,
> VJ.
> 
> 
>       Did you know? You can CHAT without downloading messenger. 
> Go to http://in.messenger.yahoo.com/webmessengerpromo.php/ 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-10 13:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-10 13:33 Newbie trying to build statically linkable lib Varun Jobanputra
2007-08-18  7:20 ` Robert Kindred

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).