Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No Linker option in Visual Studio Project Properties

I'm trying to add a library to a Visual Studio C++ project, however, when I go to project properties I only have options for,

Common Properties
    Startup Project
    Project Dependencies
    Debug Source File
Configuration Properites
    Configuration

Why can't I see the linker options?

like image 520
user346443 Avatar asked Mar 08 '11 15:03

user346443


People also ask

How do I add Linker options in Visual Studio?

Linker options can be set inside or outside of Visual Studio. Within Visual Studio, you access linker options by right-clicking on a project node in Solution Explorer and choosing Properties to display the property pages. Choose Linker in the left pane to expand the node and see all the options.

How do I find project properties in Visual Studio?

You access project properties by right-clicking the project node in Solution Explorer and choosing Properties, or by typing properties into the search box on the menu bar and choosing Properties Window from the results. . NET projects might also have a properties node in the project tree itself.


3 Answers

Updating answer for VS2012 to cover executable and libraries.

If your project is an executable then you need to navigate as such: Myproject --> properties --> linker --> additional dependencies and add the dll or lib.

If you project is a library, there is no "linker" tab so you need to navigate as such: Myproject -->properties --> Librarian --> additional dependencies and add the dll or lib

like image 159
edward king Avatar answered Oct 13 '22 03:10

edward king


You are looking at the properties for the Solution.

You'll need to open the properties for the specific project within that solution.

like image 25
Michael Burr Avatar answered Oct 13 '22 04:10

Michael Burr


Are you by any chance looking at a library project? Quoted from this answer:

A library is just a collection of objects, which by definition have not been linked yet. The linker is not used to create the library, so it makes sense that there would be no linker options for it.

like image 19
Tobias Avatar answered Oct 13 '22 04:10

Tobias