gpt4 book ai didi

c++ - C++ 中这是什么类型的错误?

转载 作者:搜寻专家 更新时间:2023-10-31 02:05:28 25 4
gpt4 key购买 nike

<分区>

编译我的 .cpp 文件时遇到问题。编译器给了我很多错误行,下面显示了其中的一个片段。 (没有全部显示,因为有很多像这样的错误行)

这可能指的是哪种错误?

/tmp/ccl9wLjI.o: In function `bool __gnu_cxx::__ops::_Iter_equal_to_iter::operator()<__gnu_cxx::__normal_iterator<Point2D*, std::vector<Point2D, std::allocator<Point2D> > >, __gnu_cxx::__normal_iterator<Point2D*, std::vector<Point2D, std::allocator<Point2D> > > >(__gnu_cxx::__normal_iterator<Point2D*, std::vector<Point2D, std::allocator<Point2D> > >, __gnu_cxx::__normal_iterator<Point2D*, std::vector<Point2D, std::allocator<Point2D> > >) const':
Main.cpp:(.text._ZNK9__gnu_cxx5__ops19_Iter_equal_to_iterclINS_17__normal_iteratorIP7Point2DSt6vectorIS4_SaIS4_EEEES9_EEbT_T0_[_ZNK9__gnu_cxx5__ops19_Iter_equal_to_iterclINS_17__normal_iteratorIP7Point2DSt6vectorIS4_SaIS4_EEEES9_EEbT_T0_]+0x2d): undefined reference to `operator==(Point2D&, Point2D&)'
/tmp/ccl9wLjI.o: In function `bool __gnu_cxx::__ops::_Iter_equal_to_iter::operator()<__gnu_cxx::__normal_iterator<Point3D*, std::vector<Point3D, std::allocator<Point3D> > >, __gnu_cxx::__normal_iterator<Point3D*, std::vector<Point3D, std::allocator<Point3D> > > >(__gnu_cxx::__normal_iterator<Point3D*, std::vector<Point3D, std::allocator<Point3D> > >, __gnu_cxx::__normal_iterator<Point3D*, std::vector<Point3D, std::allocator<Point3D> > >) const':

请指教。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com