> I need to write to the eventlogs and Im trying to install 'libwin32'
> on windows.
> * nmake is installed
> * Visual Studio C++ is installed for the cl compiler
Is that the free "Express" version?
> The installation is still failing. The output from make is detailed
> below. Any suggestions?
>
> Net.xs(1) : fatal error C1083: Cannot open include file: 'windows.h':
> No such file or directory
Looks like you're missing the "Windows SDK". The Express version of VC++
only includes tools for developing .NET apps by default. It *can* build
old-school Win32 apps too, but the headers and libraries (i.e. the SDK)
for that is a separate download.
<http://msdn2.microsoft.com/en-us/visualc/aa336404.aspx>
sherm--

Signature
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
terryintransit@gmail.com - 22 Apr 2007 19:04 GMT
Thanks for the feedback.
Yes, it is the express version.
Ive installed "Windows SDK", and it contains a windows.h file. Ive
included the location in the path
C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Include
but its still complaining with the 'no such file of directory'
message.
Any suggestions would be appreciated.
> terryintran...@gmail.com writes:
> > I need to write to the eventlogs and Im trying to install 'libwin32'
[quoted text clipped - 22 lines]
> Web Hosting by West Virginians, for West Virginians:http://wv-www.net
> Cocoa programming in Perl:http://camelbones.sourceforge.net
Sisyphus - 23 Apr 2007 06:06 GMT
<terryintransit@gmail.com> wrote in message
.
.
> Ive installed "Windows SDK", and it contains a windows.h file. Ive
> included the location in the path
> C:\Program Files\Microsoft Platform SDK for Windows Server 2003
> R2\Include
> but its still complaining with the 'no such file of directory'
> message.
You need to add that location to the *include* environment variable (not the
*path* environment variable):
set INCLUDE=C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Include;%INCLUDE%
Because that directory includes white space, you may need to enclose it in
quotes (not sure):
set INCLUDE="C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Include";%INCLUDE%
You'll also want to add the location of the libraries to the lib environment
variable:
set LIB="C:\Program Files\Microsoft Platform SDK for Windows Server 2003
R2\Lib";%LIB%
It would be a good idea to relocate the SDK to a location that doesn't
contain any spaces. Even then, I'm not sure how you'll go using VC 8 if your
perl was built by VC 6.
ActivePerl is built using VC 6 - but then, if you're using ActivePerl,
you'll already have libwin (as it comes as standard with ActivePerl :-)
If you find that ActivePerl and VC 8 don't mix well and you don't have VC 6,
consider swtiching to the freely available MinGW compiler and dmake - which
provide good milage with recent builds (build 817 on) of ActivePerl.
Cheers,
Rob