Creating a .lib file in visual studio 2010

Hi, I am trying to create a static library that leads to a .lib file. I have file1.h and file1.cpp. file1.cpp has codes that need the function defined in files file2.cpp and file2.h. in my project (which in the project configuration -> I defined my project as a static library). after compilation, I see files file2.obj and file1.obj in the release folder. I do not see any .lib file. where and how should I change in visual studio 2010 to get a .lib file with a function that was defined in file1.cpp.

thanks

+4
source share
1 answer

The output file name is specified in:

Configuration Properties -> Librarian -> General -> Output File 

It may have a value different from the location of your .obj files, so - even if it creates .lib - it is not where you expect it to be.

Also, when you create, see the "Exit" window. It should repeat where it writes the .lib file.

+2
source

Source: https://habr.com/ru/post/1444671/


All Articles