This particular issue is caused by specifying a dependency to a lib file that had spaces in its path. The path needs to be surrounded by quotes for the project to compile correctly.
On the Configuration Properties -> Linker -> Input tab of the project's properties, there is an Additional Dependencies property. This issue was fixed by changing this property from:
C:\Program Files\sofware sdk\lib\library.lib
to:
" C:\Program Files\sofware sdk\lib\library.lib"
but after compiling, it says:
Error 1 fatal error LNK1104: cannot open file 'sdk\\lib\\library.lib'
How can I resolve this?
尝试将路径添加到链接器路径,仅将“ library.lib”名称添加到您的库。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.