[Yhc] Visual Studio 2005 gives libc.lib missing errors
Peter Tanski
p.tanski at gmail.com
Mon Jan 8 22:36:17 EST 2007
On Jan 8, 2007, at 1:05 PM, Peter Tanski wrote:
> There are also binaries under the ClamAV Native Win32 Port, at
> http://oss.netfarm.it/clamav/
I was wrong: those aren't binaries. Here are the directions:
1. download and install MASM if you don't have it yet (it is a small,
single executable; tiny install). Download from:
http://www.microsoft.com/downloads/details.aspx?
FamilyId=7A1C9DA0-0510-44A2-B042-7EF370530C64&displaylang=en
note: it installs into the VC++/bin directory
2. download and install 7zip if you don't have it. Download from:
http://www.7-zip.org/
3. download the full GMP library (currently v4.2.1) and extract it
into a directory, i.e., \gmp-4.2.1
http://swox.com/gmp/#DOWNLOAD
4. download the appropriate archive from http://oss.netfarm.it/
clamav/ and extract it *into* the gmp directory.
5. the .vcproj file will be in \gmp-4.2.1\msvc\gmp. Open it.
6. in normal VC++ I believe you may be fine; in VC++ Express you need
to do this:
* go to the project Properties and under Resources/General,
* under Additional Include Directories add the include directory
that contains "windows.h" (it is included in the resource file). VC+
+ Express does not come with "windows.h," but I believe the
"windows.h" from Mingw should work.
After all this it should build fine as a DLL (gmpd.dll). Note that
the default Build is a Debug Build, so you might want to change that
as well.
Cheers,
Pete
P.S., there might be an easier way to automate this process
(especially finding a "windows.h"). Since it is only a resource file
that needs windows.h, it might be possible to simply repackage the
whole distribution (gmp, the gmp-msvc version and windows.h)
together. It might not introduce conflicts if someone has another
windows.h in their path (i.e., full version or old version of VC++)
but the local directories are searched first. If all that works you
might be able to use scons to call the build.
More information about the Yhc
mailing list