专门做排行的网站,wordpress搜索页面不同,漳州建设银行网站,怎么把一个网站设置成首页这里以C的外部库nlopt为例子来示范#xff0c;右键工程选择添加库#xff0c;然后选择库文件的目录#xff08;dll.a#xff09;#xff0c;会自动设置好包含路径#xff08;一般是include的目录#xff09;#xff0c;添加库#xff08;最下面一行#xff09; …这里以C的外部库nlopt为例子来示范右键工程选择添加库然后选择库文件的目录dll.a会自动设置好包含路径一般是include的目录添加库最下面一行 平台只选择windows然后选择不要在debug版本添加’d’为后缀
给出的在pro文件里的配置是这样的
win32: LIBS -LF:/NLopt/nlopt/lib/ -llibnlopt.dllINCLUDEPATH F:/NLopt/nlopt/include
DEPENDPATH F:/NLopt/nlopt/include这里我们可以进行一下修改
win32:CONFIG(release, debug|release): LIBS -LF:/NLopt/nlopt/lib/ -llibnlopt.dll
else:win32:CONFIG(debug, debug|release): LIBS -LF:/NLopt/nlopt/lib/ -llibnlopt.dllINCLUDEPATH F:/NLopt/nlopt/include
DEPENDPATH F:/NLopt/nlopt/include在需要的地方使用库
#include nlopt.h没有报错OK成功配置。