Click here to get back home

Perl on Windows

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Perl on Windows terryintransit 04-18-2007
Posted by terryintransit on April 18, 2007, 3:30 pm
Please log in for more thread options


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


Posted by Sherm Pendley on April 18, 2007, 3:43 pm
Please log in for more thread options


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

Posted by terryintransit on April 22, 2007, 2:04 pm
Please log in for more thread options


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



Posted by Sisyphus on April 23, 2007, 1:06 am
Please log in for more thread options



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


Similar ThreadsPosted
Windows: Perl:XS July 6, 2005, 4:57 am
Imlib2 and Windows perl March 17, 2005, 6:28 am
Windows: Perl:Inline July 6, 2005, 4:56 am
Windows services in PERL July 13, 2006, 3:01 pm
help on how to use PERL to do a "postmessage" to a windows handle January 16, 2005, 12:10 pm
Installing Perl InlineC module in Windows 2003 August 4, 2005, 9:11 pm
Where to get DBD::pg for Windows? January 12, 2005, 1:02 pm
Net::SFTP on Windows March 21, 2005, 9:55 pm
Termcap under Windows XP... May 23, 2006, 1:49 pm
DBI Module for windows July 11, 2006, 10:34 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap