Skip to content

Commit 328d8c4

Browse files
author
Colin Robertson
committed
Add LIB options per Kevin
1 parent f2cbb18 commit 328d8c4

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

docs/build/reference/overview-of-lib.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Overview of LIB"
3-
ms.date: "11/04/2016"
3+
description: Overview of the use and options of the library tool, lib.exe.
4+
ms.date: "09/25/2019"
45
f1_keywords: ["Lib"]
56
helpviewer_keywords: ["LIB [C++], modes"]
67
ms.assetid: e997d423-f574-434f-8b56-25585d137ee0
@@ -31,6 +32,8 @@ The following table lists the options for lib.exe, with a link to more informati
3132
|**/EXTRACT**| Create an object (.obj) file that contains a copy of a member of an existing library.<br/><br/>For more information see [Extracting a Library Member](extracting-a-library-member.md).|
3233
|**/INCLUDE**| Adds a symbol to the symbol table.<br/><br/>For more information see [Building an Import Library and Export File](building-an-import-library-and-export-file.md).|
3334
|**/LIBPATH**| Overrides the environment library path.<br/><br/>For more information see [Managing a Library](managing-a-library.md).|
35+
|**/LINKREPRO**| Creates artifacts needed to reproduce a lib.exe crash or internal error.<br/><br/>For more information, see [Running LIB](running-lib.md).|
36+
|**/LINKREPROTARGET**| Only generates the **/LINKREPRO** artifacts when lib.exe is used with a specified file.<br/><br/>For more information, see [Running LIB](running-lib.md).|
3437
|**/LIST**| Displays information about the output library to standard output.<br/><br/>For more information see [Managing a Library](managing-a-library.md).|
3538
|**/LTCG**| Causes the library to be built using link-time code generation.<br/><br/>For more information see [Running LIB](running-lib.md).|
3639
|**/MACHINE**| Specifies the target platform for the program.<br/><br/>For more information see [Running LIB](running-lib.md).|

docs/build/reference/running-lib.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "Running LIB"
3-
ms.date: "09/28/2018"
3+
description: Describes the command-line options you can use with lib.exe.
4+
ms.date: "09/25/2019"
45
f1_keywords: ["VC.Project.VCLibrarianTool.TargetMachine", "Lib", "VC.Project.VCLibrarianTool.PrintProgress", "VC.Project.VCLibrarianTool.SuppressStartupBanner"]
56
helpviewer_keywords: ["-MACHINE target platform option", "command files, LIB", "MACHINE target platform option", "colon command files", "VERBOSE library manager option", "/NOLOGO library manager option", "dash option specifier", "/MACHINE target platform option", "forward slash option specifier", "-NOLOGO library manager option", "LIB [C++], running LIB", "-VERBOSE library manager option", "/VERBOSE library manager option", "command files", "NOLOGO library manager option", "slash (/)", "semicolon, command files", "/ command files"]
67
ms.assetid: d54f5c81-7147-4b2c-a8db-68ce6eb1eabd
@@ -40,6 +41,11 @@ If lib.exe fails at runtime, you can use **/ERRORREPORT** to send information to
4041

4142
For more information about **/ERRORREPORT**, see [/errorReport (Report Internal Compiler Errors)](errorreport-report-internal-compiler-errors.md).
4243

44+
> **/LINKREPRO:**_directory-path_ \
45+
> **/LINKREPROTARGET:**_filename_
46+
47+
To help Microsoft diagnose lib.exe crashes and internal errors, you can use the **/LINKREPRO** option. It works the same way as the [/LINKREPRO](linkrepro.md) linker option. The [/LINKREPROTARGET](linkreprotarget.md) option can be used with the **/LINKREPRO** option. It filters on a _filename_, to only generate repro artifacts when lib.exe is used on that file. For more information, see [How to report a problem with the Microsoft C++ toolset](../../overview/how-to-report-a-problem-with-the-visual-cpp-toolset.md).
48+
4349
> **/LTCG**
4450
4551
"LTCG" stands for *link-time code generation*. This feature requires cooperation between the compiler ([cl.exe](compiler-options.md)), LIB, and the linker ([LINK](linker-options.md)) in order to optimize code beyond what any component can do by itself.

0 commit comments

Comments
 (0)