views:

92

answers:

2

Is there a way in a Visual C++ Win32 DLL project to have the linker output the DLL to one directory and the import library (*.lib) to another?

A: 

In your project settings, set the post condition to where you want your dll and lib copied to.

+2  A: 

In project properties /Linker/General/Output File is path and name of dll. Linker/Advanced/Import Library is path and name of the lib.

(That's for VS2003, similar or same for other versions)

Eugene
Thanks! The MSDN docs make it sound like it's just a file name, not a path. I should've just tried that in the first place.
Nick Meyer