C ++中的链接错误 [英] Linking Error in C++

查看:80
本文介绍了C ++中的链接错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个程序,该程序没有给出任何编译时错误,但是在运行程序时却出现以下错误:-

链接器错误:无法打开文件"Maths.lib"

此错误的含义是什么...

I have written a program which not giving any compile time error but when I run program it gives the following error:-

Linker Error: Unable to open file ''Maths.lib''

what is the meaning of this error...

推荐答案

在链接器选项中,您必须指定所需的库.
如果您使用的是Turbo C++,请查看此论坛帖子 [ ^ ](与图形库类似的问题)
In the linker options, you have to specify the libraries you need.
If you are you using Turbo C++, then have a look at this forum post[^] (a similar problem with the graphics library).




当没有将特定的库添加到您的项目中并且编译器试图使用该库中定义的功能时,通常会发生链接错误.就您而言,项目中可能缺少"Maths.lib".如果已经包含,请确保路径正确.

谢谢
Hi,

The link error usually occur when a particular library is not added to your project,and the compiler is trying to use a functionality which is defined in that library. In your case may be "Maths.lib" is missing from your project. If it already included make sure the path is correct.

Thanks


这篇关于C ++中的链接错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆