For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > April 2007 > Perl on Windows









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Perl on Windows
terryintransit@gmail.com

2007-04-18, 9:57 pm

Hi All,

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

The installation is still failing. The output from make is detailed
below. Any suggestions?

Thanks

> make

"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f
Makefile all -nologo
cl -c -nologo -GF -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -
DNO_STRICT -DHAVE_DES_FCRYPT -DNO_HASH_SEED -DUSE_SITECUSTOMIZE -
DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -
DPERL_MSVCRT_READFIX -MD -Zi -DNDEBUG -O1 -DVERSION=\"0.10\" -
DXS_VERSION=\"0.10\" "-IC:\Perl\lib\CORE" Net.c
Net.c
Net.xs(1) : fatal error C1083: Cannot open include file: 'windows.h':
No such file or directory

Sherm Pendley

2007-04-18, 9:57 pm

terryintransit@gmail.com writes:

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

--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
terryintransit@gmail.com

2007-04-23, 3:57 am

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.


On 18 Apr, 20:43, Sherm Pendley <spamt...@dot-app.org> wrote:
> terryintran...@gmail.com writes:
>
> Is that the free "Express" version?
>
>
>
> 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--
>
> --
> Web Hosting by West Virginians, for West Virginians:http://wv-www.net
> Cocoa programming in Perl:http://camelbones.sourceforge.net



Sisyphus

2007-04-23, 3:57 am


<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

Zz999

2007-04-29, 10:42 am

http://Mel-Gibson-spanking.info/Win...hp?movie=148803
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com