cvivisual-studio-2010

How can you examine lib files?


I have a List of 390 Libraries and need to port a software from lab CVI to Visual C. Those dependencies are killing me.

I cant import all of them, that would be overkill - and not all of them are unique and/or can be loaded at all.

Is there an easy way to determine what calls a lib file takes? Are there any editors for this?


Solution

  • The Microsoft librarian program LIB.EXE allows you to examine library contents, assuming you are asking about static libraries. It's part of the VC++ distribution, or at least it used to be - I don't use VC++ any more. These are the options available:

    Microsoft (R) Library Manager Version 6.00.8168
    Copyright (C) Microsoft Corp 1992-1998. All rights reserved.
    
    usage: LIB [options] [files]
    
       options:
    
          /CONVERT
          /DEBUGTYPE:CV
          /DEF[:filename]
          /EXPORT:symbol
          /EXTRACT:membername
          /INCLUDE:symbol
          /LIBPATH:dir
          /LINK50COMPAT
          /LIST[:filename]
          /MACHINE:{ALPHA|ARM|IX86|MIPS|MIPS16|MIPSR41XX|PPC|SH3|SH4}
          /NAME:filename
          /NODEFAULTLIB[:library]
          /NOLOGO
          /OUT:filename
          /REMOVE:membername
          /SUBSYSTEM:{NATIVE|WINDOWS|CONSOLE|WINDOWSCE|POSIX}[,#[.##]]
          /VERBOSE