Dev C ++未定义的引用链接器错误 [英] Dev C++ undefined reference linker error

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

问题描述

编译此代码时遇到问题
http://gfx.cs.princeton.edu/gfx/proj/sugcon/software/rtsc-1.6.zip

我在Windows中使用了Dev c ++并解决了一些错误,我花了一个星期的时间来解决问题,但其他一些错误仍然存​​在。
上面代码的重构代码在这里:

< a href =https://ufile.io/kcasp>< / a>

我收到这个错误:

< a href =https://ufile.io/9diq3>< / a>





我的尝试:



<$ p $我尝试各种方法来解决链接器错误未定义的引用,但我不能成功。

解决方案

我不打算下载解压缩ZIP存档或访问链接以查看编译器/链接器错误消息。



请使用绿色的改善问题链接编辑您的问题并添加完整的错误消息(只是复制并粘贴它)和有关错误消息中提到的函数的信息(定义函数的位置)。



但是:

由于链接器错误,该消息包含一个函数名称。找到包含该功能的模块。它可能是库或源文件。



如果是库,则必须在项目中指定要与应用程序链接的库。



如果是源文件,则必须将其添加到项目中,以便将其编译并与应用程序链接。


显然链接器抱怨资源的URL。所以检查

a)这个配置和IDE允许使用resoure

b)该文件存在并且它具有正确的数据格式

c)链接器具有访问权限(如访问Internet和访问此URL)



由于https协议,文件访问可能受到限制。我会尝试下载数据并将其放在项目本地。


I have a problem to compile this code
http://gfx.cs.princeton.edu/gfx/proj/sugcon/software/rtsc-1.6.zip

I used Dev c++ in windows and solve some errors,and i spent a week to solve problems, but some other errors is still exist.
my refactored code of above code is here:

<a href="https://ufile.io/kcasp"></a>

and i get this errors:

<a href="https://ufile.io/9diq3"></a>



What I have tried:

i try all ways to sovle linker error "undefined refrence", but i cant success.

解决方案

I'm not going to download an unpack a ZIP archive or visit a link to see a compiler / linker error message.

Please edit your question by using the green 'Improve question' link and add the full error message (just copy and paste it) and information about the function mentioned in the error message (where the function is defined).

However:
With linker errors, the message contains a function name. Locate the module containing that function. It is probably either a library or a source file.

If it is a library, you have to specify that library in your project to be linked with your application.

If it is a source file, you have to add that to your project so that it is compiled and linked with your application.


It is obvious that the linker is complaining about the URL of the resource. So check that
a) this configuration and use of the resoure is allowed by the IDE
b) the file exists and it has the correct data format
c) that the linker has the access rights (like internet access and access to this URL)

Because of the https protocol the file access may be restricted. I would try to download the data and put it locally in the project.


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

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