----- Original Message ----- 
From: "SANDHYA PAWAR" <[EMAIL PROTECTED]>
To: <inline@perl.org>
Sent: Wednesday, June 28, 2006 2:09 PM
Subject: Inline::java question



> I installed VC++ on my PC.
> I copied mspdb60.dll & cl.exe in WINNT\System32.

Not necessary to do that - probably better to *not* do that. If you first
run 'vcvars32.bat' from the command line the location of those files (and
other necessary files) will be added to the path.

> And also add path of 'cl.exe' in PATH variable...

Not necessary to do that. If you first run 'vcvars32.bat' from the command
line the location of cl.exe will be added to the path.

> So if I gives cmd like ...

> C:\>cl
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 12.00.8168 for
> 80x86 Copyright (C) Microsoft Corp 1984-1998. All rights reserved.
> usage: cl [ option... ] filename... [ /link linkoption... ]
>
> So I think it has been installed properly .. Is it right way??

At least 'cl.exe' can be found - but there's a lot more to getting VC6 to
perform correctly than simply finding cl.exe (as you have found below).

> But now new error has come like
> C:\Perl\lib\Inline>nmake

You don't really want to build modules inside your perl installation. (I
assume that C:\Perl\lib is part of your perl installation. If that's not so
then you can ignore that remark.) If you run 'vcvars32.bat' from the command
line, you'll be able to build your perl modues in whatever folder you
choose - assuming that the perl executable is also in your path. (If it's
not, then add it to the path.) I created a separate folder where I build
*all* perl modules.

.
.
> C:\Perl\lib\CORE\perl.h(420) : fatal error C1083: Cannot open include
> file: 'sys/types.h': No such file or directory

It can't find 'sys/types.h' because it doesn't know where it's located. If
you first run 'vcvars32.bat' from the command line, it will be able to find
'sys/types.h' - along with all other includes and libraries and executables.

The 'vcvars32.bat' is found in the same place as 'cl.exe'. On my machine,
that's D:\VC98\bin, so I run 'vcvars32.bat' by simply entering:

C:\WINNT\system32>D:\vc98\bin\vcvars32.bat
Setting environment for using Microsoft Visual C++ tools.
C:\WINNT\system32>

Everything is then in place to enable compilation (from whatever folder I
'cd' to ).

Alternatively, I can create another batch file called (for example)
'my_vc.bat' and place it somewhere in my path. It would contain the single
line:
"D:\VC98\bin\vcvars32.bat"

(The double quotes are not necessary if there are no spaces in the path to
vcvars32.bat.)

Then I can run vcvars32.bat by simply entering (at the command prompt):
my_vc

That way I get to run vcvars32.bat without having to remember where it is
located.

Cheers,
Rob

Reply via email to