在C ++项目中使用Dislin库

时间:2019-01-16 15:04:17

标签: c++ visual-studio

我安装了Dislin,将其标头和库添加到包含路径和链接器(使用VS 2017),但出现以下错误:

Warning LNK4098 defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library ConsoleApplication1 C:\Users\roinr\source\repos\ConsoleApplication1\ConsoleApplication1\LINK    1   
Error   LNK2001 unresolved external symbol fprintf  ConsoleApplication1 C:\Users\roinr\source\repos\ConsoleApplication1\ConsoleApplication1\discpp.lib(resall.obj)  1   
Error   LNK2001 unresolved external symbol fprintf  ConsoleApplication1 C:\Users\roinr\source\repos\ConsoleApplication1\ConsoleApplication1\discpp.lib(qqwini.obj)  1   
Error   LNK2001 unresolved external symbol fprintf  ConsoleApplication1 C:\Users\roinr\source\repos\ConsoleApplication1\ConsoleApplication1\discpp.lib(disext.obj)  1   
Error   LNK2001 unresolved external symbol fprintf  ConsoleApplication1 C:\Users\roinr\source\repos\ConsoleApplication1\ConsoleApplication1\discpp.lib(qqppng.obj)  1   
Error   LNK2001 unresolved external symbol fprintf  ConsoleApplication1 C:\Users\roinr\source\repos\ConsoleApplication1\ConsoleApplication1\discpp.lib(disbs2.obj)  1   
Error   LNK2001 unresolved external symbol fprintf  ConsoleApplication1 C:\Users\roinr\source\repos\ConsoleApplication1\ConsoleApplication1\discpp.lib(line.obj)    1   
Error   LNK2001 unresolved external symbol fprintf  ConsoleApplication1 C:\Users\roinr\source\repos\ConsoleApplication1\ConsoleApplication1\discpp.lib(disini.obj)  1   
Error   LNK2001 unresolved external symbol fprintf  ConsoleApplication1 C:\Users\roinr\source\repos\ConsoleApplication1\ConsoleApplication1\discpp.lib(errmes.obj)  1   
Error   LNK1120 1 unresolved externals  ConsoleApplication1 C:\Users\roinr\source\repos\ConsoleApplication1\x64\Release\ConsoleApplication1.exe 1

这是我的代码:

#include <iostream>
#include "discpp.h"
int main()
{
   Dislin g;
   return 0;
};

我尝试使用/ NODEFAULTLIB开关,但没有帮助。我是VS和C ++的新手,并且不熟悉使用其他库所需的所有配置。 您能帮我找到相关信息的来源吗?

顺便说一句,我的目标是创建一个简单的散点图,对我可以使用的其他库有何建议?

0 个答案:

没有答案