链接错误。 [英] Link error.

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

问题描述

所以我今天早上报名并发布了一篇介绍。我提到了一个错误,然后不再存在。 。 。因此它不再是一个问题。 。 。


但我想我说的太快了。


无论如何,我还没有编程一段时间(六年),这是我第一次使用容器类。 。 。我写了一个非常简单的程序来测试矢量容器:


main.cpp:

------------- -------------------------------------------------- -------------

so i signed up this morning and posted an introduction. i mentioned an error that was and then was no longer . . . thus it ceased to be a problem . . .

but i guess i spoke too soon.

anyways, i have not been programming for a while (six years) and this is the first time i am using a container class . . . i wrote a very simple program to test out the vector container:

main.cpp:
----------------------------------------------------------------------------

展开 | 选择 | Wrap 行号

推荐答案

在Fish中声明析构函数
in Fish you declare the destructor
展开 | 选择 | Wrap | 行号


尝试。 。 。


。 。 。同样的错误。我不知道。我认为生病使用不同的编译器只是为了看。 。 。


(也就是代码标签的thx ......乍看之下没看到......)
trying . . .

. . . same errors. i dunno. i think ill use a different compiler just to see . . .

(also, thx for the code tags . . . didnt see that on first glance . . .)



尝试。 。 。


。 。 。同样的错误。我不知道。我认为生病使用不同的编译器只是为了看。 。 。


(同样,代码标签的thx ......乍看之下没看到......)
trying . . .

. . . same errors. i dunno. i think ill use a different compiler just to see . . .

(also, thx for the code tags . . . didnt see that on first glance . . .)



编译horace1'的更正对我来说很好。

没有它,我看到你提到的未定义的引用错误。

Compiles fine for me with horace1''s correction.
Without it, I see the undefined reference errors you mentioned.


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

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