How do I add a lib file to link in Visual C++ 2010?

Add the wsock32.lib in the text field.

 Project Properties -> Linker -> Input -> Additional Dependencies.

When you click in the field, you get a ... button. Click on this button and add one library name per line. Alternatively you can write the names in the field. Separate all entries with space characters.

You can verify that it’s on the command line in

 Project Properties -> Linker -> Command Line.

Leave a Comment