curl-library
Re: Win32 build: Makefile.vc6 and /YX
From: Gisle Vanem <gvanem_at_broadpark.no>
Date: Wed, 26 May 2004 06:02:29 +0200
Date: Wed, 26 May 2004 06:02:29 +0200
"Mohun Biswas" <m_biswas_at_mailinator.com> said:
> I'm not a Windows build expert, just porting something that uses curl
> from Unix to Win32. But I notice that the compile line in Makefile.vc6
> uses the /YX flag without specifying a name for the .pch file and this
> looks wrong.
"/YXfilename" does not specify a .PCH as filename. But filename is
a header that tells VC to skip parsing that header and use the PCH data
for it. See:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/_core_.2f.yx.asp
To speed up header-parsing it's best to use /Yu:file.h. Where file.h includes
most of the other headers. Like Visual Studio does for MFC projects.
--gv
Received on 2004-05-26