Link to home
Start Free TrialLog in
Avatar of ecosys
ecosys

asked on

'lib' is not recognized as an internal or external command

Hi-

  When trying to perform the following command :
       C:\Documents and Settings\administrator>lib -NOLOGO -LIST e:/oracle/prodappl/ad/11.5.0/lib/adst.lib
  I recieved an error:  'lib' is not recognized as an internal or external command, operable program or batch file.
 
 I've installed the MS C++ ToolKit 2003 on the D:\MSC++tookkit folder on that machine, but still getting that error message.
when running that command.   Is the path not set correctly on the machine? if not anyone know where is the path for 'lib' should be?

 
Thanks
Avatar of jkr
jkr
Flag of Germany image

You need to execute the vcvars32.bat from the installation folder of the ToolKit 2003, which will set the PATH environment variable accordingly.
Avatar of ecosys
ecosys

ASKER

Thanks jkr, for the quick response.

I've executed the the vcvars32.bat from commmand prompted, any idea what is the command/string to set the path for 'lib'?


Open the .bat file in an editor. It is generated during the installation and should set the appropriate PATH environment. Usually, it is an expression like

set PATH=%PATH%;c:\[Path to your installation]\bin

Avatar of ecosys

ASKER

Opened the .bat file with an editor and it seem to be correct:

@echo off

Set PATH=D:\MSC++ToolKit2003\bin;%PATH%
Set INCLUDE=D:\MSC++ToolKit2003\include;%INCLUDE%
Set LIB=D:\MSC++ToolKit2003\lib;%LIB%

echo Setting environment for using Microsoft Visual C++ 2003 Toolkit.
echo (If you have another version of Visual Studio or Visual C++ installed and wish
echo to use its tools from the command line, run vcvars32.bat for that version.)
echo.
echo Thank you for choosing the Visual C++ Toolkit 2003!  Get started quickly by
echo building the code samples included in the "Samples" directory.  Each sample
echo includes a short whitepaper discussing the Visual C++ features, and a batch
echo file for building the code.
echo.
echo Type "cl /?" for brief documentation on compiler options.
echo.
echo Visit http://msdn.microsoft.com/visualc/using/documentation/default.aspx for
echo complete compiler documentation.
Avatar of ecosys

ASKER

Even when I went on the server and type this:
 D:\MSC++ToolKit2003\bin>lib

I would get
'lib' is not recognized as an internal or external command, operable proggram or batch file
That's odd. Is 'lib.exe' located in that directory at all?
Avatar of ecosys

ASKER

nope, i don't see 'lib.exe' anywhere on the server.  
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ecosys

ASKER

Thanks again jkr,

The Platform SDK is 398.5mb of downloading.  Do you know of a better way? to get lib.exe?


No legal one, sorry.
Avatar of ecosys

ASKER

jkr,
  I went and downloaded as suggested.
I now found the 'lib.exe' under D:\Program Files\Microsoft Platform SDK\Bin\win64

Does it matter that it is located under win64 folder?  we don't have a 64 bit processor.
Argh, that's bad, this is the 64bit version. Hm, I think I misunderstood your Q, let me clarify: You have the Toolkit (i.e. the command line tools) or the Express Edition?
Avatar of ecosys

ASKER

I moved the D:\Program Files\Microsoft Platform SDK\Bin\win64\*.* to the D:\MSC++ToolKit2003\Bin\ folder on the server, as advised on http://wiki.tcl.tk/11431  it appears to be working.

Thanks jkl