链接库时出错 [英] Error linking a library
本文介绍了链接库时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在创建源文件.在此,我正在定义TARGETLIB.一种方法是TARGETLIBS = $(SDK_LIB_PATH)\ setupapi.lib
但是要包含不在"SDK_LIB_PATH"中的库,如何包含?
我在"c:\ sharing \ suresh"文件夹中有一个名为proxy.lib的库.
I am creating a source file. In that I am defining TARGETLIB. One way is TARGETLIBS=$(SDK_LIB_PATH)\setupapi.lib
But to include a library which is not in "SDK_LIB_PATH", how to include?
I have library by name proxy.lib in "c:\sharing\suresh" folder. how to include this?
推荐答案
(SDK_LIB_PATH)\ setupapi.lib
但是要包含不在"SDK_LIB_PATH"中的库,如何包含?
我在"c:\ sharing \ suresh"文件夹中有一个名为proxy.lib的库.
(SDK_LIB_PATH)\setupapi.lib
But to include a library which is not in "SDK_LIB_PATH", how to include?
I have library by name proxy.lib in "c:\sharing\suresh" folder. how to include this?
可以在源文件中编译以下内容吗? :):
Can you compile the following in you source file ? :) :
#pragma comment(lib, "c:\\sharing\\suresh\\proxi.lib")
这篇关于链接库时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文