My visual studio project uses the dll ftcspi.dll to talk over usb/spi to the device. I want to not to have to use the dll but to use the .lib file instead. So in the settings I have FTCSPI.lib added to ProjectSettings->Link->Input. I have changed the ProjectSettings->Link->General->additionLibraryDirectories t have the location of ftcspi.lib in it. The exe still doesn't work without having the FTCSPI.dll present.
问问题
162 次
1 回答
0
If the project (FTCSPI) is set to compile as a dynamic library, then the .lib you see there is just a file to help the compiler link to that dynamic library (dll).
You would need to compile FTCSPI as a static library to achieve what I think you want to achieve.
Configuration Properties -> General -> Configuration type.
于 2013-10-28T14:26:16.063 回答