Linker command failed with exit code 1 (use -v to see invocation). I'm only studying and don't know what to do

47 Views Asked by At

https://github.com/RomchikNaKaife/laba3_4sem/blob/main/laba3_4sem/Programm/main.cpp

There's a link for my programm file. Working in XCode 14 on mac. I've tried to ask GPTs. They're useless or maybe I am useless :)

There's log:

  Shape2D::GetArea() const, referenced from:
      vtable for Square in main.o
  Shape2D::operator==(Shape2D const&) const, referenced from:
      vtable for Square in main.o
  Shape2D::operator>(Shape2D const&) const, referenced from:
      vtable for Square in main.o
  Shape2D::operator<(Shape2D const&) const, referenced from:
      vtable for Square in main.o
  Shape3D::GetVolume() const, referenced from:
      vtable for TriangularPyramid in main.o
      vtable for Cylinder in main.o
      vtable for Sphere in main.o
  Shape3D::operator==(Shape3D const&) const, referenced from:
      vtable for TriangularPyramid in main.o
      vtable for Cylinder in main.o
      vtable for Sphere in main.o
  Shape3D::operator>(Shape3D const&) const, referenced from:
      vtable for TriangularPyramid in main.o
      vtable for Cylinder in main.o
      vtable for Sphere in main.o
  Shape3D::operator<(Shape3D const&) const, referenced from:
      vtable for TriangularPyramid in main.o
      vtable for Cylinder in main.o
      vtable for Sphere in main.o
  typeinfo for Shape2D, referenced from:
      typeinfo for Square in main.o
      typeinfo for Triangle in main.o
      typeinfo for Circle in main.o
  typeinfo for Shape3D, referenced from:
      typeinfo for TriangularPyramid in main.o
      typeinfo for Cylinder in main.o
      typeinfo for Sphere in main.o
  vtable for Shape2D, referenced from:
      Shape2D::Shape2D() in main.o
      Shape2D::Shape2D(Shape2D const&) in main.o
  vtable for Shape3D, referenced from:
      Shape3D::Shape3D() in main.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
0

There are 0 best solutions below