Visual Studio’s linker has an /IMPLIB
option that allows you to specify the output location for your .lib
and .exp
files.
You can modify this option in a project’s properties:
Configuration Properties > Linker > Advanced > Import Library
You might set it to the following, for example:
$(Configuration)\$(TargetName).lib
The linker will create the .exp
file using the same name as the .lib
.