Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Perl / Modules / April 2007



Tip: Looking for answers? Try searching our database.

Perl on Windows

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
terryintransit@gmail.com - 18 Apr 2007 20:30 GMT
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 - 18 Apr 2007 20:43 GMT
> 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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.