Perl on Windows

Perl on Windows

am 18.04.2007 21:30:56 von terryintransit

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

Re: Perl on Windows

am 18.04.2007 21:43:35 von Sherm Pendley

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.



sherm--

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

Re: Perl on Windows

am 22.04.2007 20:04:01 von terryintransit

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 wrote:
> terryintran...@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.
>
>
>
> sherm--
>
> --
> Web Hosting by West Virginians, for West Virginians:http://wv-www.net
> Cocoa programming in Perl:http://camelbones.sourceforge.net

Re: Perl on Windows

am 23.04.2007 07:06:09 von Sisyphus

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