MaxMartST / OOP

Курс по объектно ориентированному программированию
1 stars 0 forks source link

Замечания по программе Shapes #10

Open alexey-malov opened 4 years ago

alexey-malov commented 4 years ago
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Transformable::setOrigin(float,float)" (__imp_?setOrigin@Transformable@sf@@QAEXMM@Z) referenced in function "public: virtual void __thiscall CCanvas::DrawCircle(class CPoint,double,unsigned int)" (?DrawCircle@CCanvas@@UAEXVCPoint@@NI@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Transformable::move(float,float)" (__imp_?move@Transformable@sf@@QAEXMM@Z) referenced in function "public: virtual void __thiscall CCanvas::DrawCircle(class CPoint,double,unsigned int)" (?DrawCircle@CCanvas@@UAEXVCPoint@@NI@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z) referenced in function "class sf::Color __cdecl ConvertColor(unsigned int)" (?ConvertColor@@YA?AVColor@sf@@I@Z)
1>CCommandHandler.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (__imp_??0Color@sf@@QAE@EEEE@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Vertex::Vertex(class sf::Vector2<float> const &)" (__imp_??0Vertex@sf@@QAE@ABV?$Vector2@M@1@@Z) referenced in function "public: virtual void __thiscall CCanvas::DrawLine(class CPoint,class CPoint,unsigned int)" (?DrawLine@CCanvas@@UAEXVCPoint@@0I@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Shape::setFillColor(class sf::Color const &)" (__imp_?setFillColor@Shape@sf@@QAEXABVColor@2@@Z) referenced in function "public: virtual void __thiscall CCanvas::FillCircle(class CPoint,double,unsigned int)" (?FillCircle@CCanvas@@UAEXVCPoint@@NI@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Shape::setOutlineColor(class sf::Color const &)" (__imp_?setOutlineColor@Shape@sf@@QAEXABVColor@2@@Z) referenced in function "public: virtual void __thiscall CCanvas::DrawCircle(class CPoint,double,unsigned int)" (?DrawCircle@CCanvas@@UAEXVCPoint@@NI@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Shape::setOutlineThickness(float)" (__imp_?setOutlineThickness@Shape@sf@@QAEXM@Z) referenced in function "public: virtual void __thiscall CCanvas::DrawCircle(class CPoint,double,unsigned int)" (?DrawCircle@CCanvas@@UAEXVCPoint@@NI@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::CircleShape::CircleShape(float,unsigned int)" (__imp_??0CircleShape@sf@@QAE@MI@Z) referenced in function "public: virtual void __thiscall CCanvas::DrawCircle(class CPoint,double,unsigned int)" (?DrawCircle@CCanvas@@UAEXVCPoint@@NI@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::CircleShape::~CircleShape(void)" (__imp_??1CircleShape@sf@@UAE@XZ) referenced in function "public: virtual void __thiscall CCanvas::DrawCircle(class CPoint,double,unsigned int)" (?DrawCircle@CCanvas@@UAEXVCPoint@@NI@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::ConvexShape::ConvexShape(unsigned int)" (__imp_??0ConvexShape@sf@@QAE@I@Z) referenced in function "public: virtual void __thiscall CCanvas::FillPolygon(class std::vector<class CPoint,class std::allocator<class CPoint> >,unsigned int)" (?FillPolygon@CCanvas@@UAEXV?$vector@VCPoint@@V?$allocator@VCPoint@@@std@@@std@@I@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::ConvexShape::setPointCount(unsigned int)" (__imp_?setPointCount@ConvexShape@sf@@QAEXI@Z) referenced in function "public: virtual void __thiscall CCanvas::FillPolygon(class std::vector<class CPoint,class std::allocator<class CPoint> >,unsigned int)" (?FillPolygon@CCanvas@@UAEXV?$vector@VCPoint@@V?$allocator@VCPoint@@@std@@@std@@I@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::ConvexShape::setPoint(unsigned int,class sf::Vector2<float> const &)" (__imp_?setPoint@ConvexShape@sf@@QAEXIABV?$Vector2@M@2@@Z) referenced in function "public: virtual void __thiscall CCanvas::FillPolygon(class std::vector<class CPoint,class std::allocator<class CPoint> >,unsigned int)" (?FillPolygon@CCanvas@@UAEXV?$vector@VCPoint@@V?$allocator@VCPoint@@@std@@@std@@I@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::ConvexShape::~ConvexShape(void)" (__imp_??1ConvexShape@sf@@UAE@XZ) referenced in function "public: virtual void __thiscall CCanvas::FillPolygon(class std::vector<class CPoint,class std::allocator<class CPoint> >,unsigned int)" (?FillPolygon@CCanvas@@UAEXV?$vector@VCPoint@@V?$allocator@VCPoint@@@std@@@std@@I@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::draw(class sf::Drawable const &,class sf::RenderStates const &)" (__imp_?draw@RenderTarget@sf@@QAEXABVDrawable@2@ABVRenderStates@2@@Z) referenced in function "public: virtual void __thiscall CCanvas::DrawCircle(class CPoint,double,unsigned int)" (?DrawCircle@CCanvas@@UAEXVCPoint@@NI@Z)
1>CCanvas.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::draw(class sf::Vertex const *,unsigned int,enum sf::PrimitiveType,class sf::RenderStates const &)" (__imp_?draw@RenderTarget@sf@@QAEXPBVVertex@2@IW4PrimitiveType@2@ABVRenderStates@2@@Z) referenced in function "public: virtual void __thiscall CCanvas::DrawLine(class CPoint,class CPoint,unsigned int)" (?DrawLine@CCanvas@@UAEXVCPoint@@0I@Z)
1>CCanvas.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class sf::RenderStates const sf::RenderStates::Default" (__imp_?Default@RenderStates@sf@@2V12@B)
1>CCommandHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::String(char const *,class std::locale const &)" (__imp_??0String@sf@@QAE@PBDABVlocale@std@@@Z) referenced in function "public: void __thiscall CCommandHandler::DrawShapes(void)const " (?DrawShapes@CCommandHandler@@QBEXXZ)
1>CCommandHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::String::~String(void)" (__imp_??1String@sf@@QAE@XZ) referenced in function "public: void __thiscall CCommandHandler::DrawShapes(void)const " (?DrawShapes@CCommandHandler@@QBEXXZ)
1>CCommandHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::VideoMode::VideoMode(unsigned int,unsigned int,unsigned int)" (__imp_??0VideoMode@sf@@QAE@III@Z) referenced in function "public: void __thiscall CCommandHandler::DrawShapes(void)const " (?DrawShapes@CCommandHandler@@QBEXXZ)
1>CCommandHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::close(void)" (__imp_?close@Window@sf@@QAEXXZ) referenced in function "public: void __thiscall CCommandHandler::DrawShapes(void)const " (?DrawShapes@CCommandHandler@@QBEXXZ)
1>CCommandHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::isOpen(void)const " (__imp_?isOpen@Window@sf@@QBE_NXZ) referenced in function "public: void __thiscall CCommandHandler::DrawShapes(void)const " (?DrawShapes@CCommandHandler@@QBEXXZ)
1>CCommandHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: bool __thiscall sf::Window::pollEvent(class sf::Event &)" (__imp_?pollEvent@Window@sf@@QAE_NAAVEvent@2@@Z) referenced in function "public: void __thiscall CCommandHandler::DrawShapes(void)const " (?DrawShapes@CCommandHandler@@QBEXXZ)
1>CCommandHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::display(void)" (__imp_?display@Window@sf@@QAEXXZ) referenced in function "public: void __thiscall CCommandHandler::DrawShapes(void)const " (?DrawShapes@CCommandHandler@@QBEXXZ)
1>CCommandHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::RenderTarget::clear(class sf::Color const &)" (__imp_?clear@RenderTarget@sf@@QAEXABVColor@2@@Z) referenced in function "public: void __thiscall CCommandHandler::DrawShapes(void)const " (?DrawShapes@CCommandHandler@@QBEXXZ)
1>CCommandHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class sf::String const &,unsigned int,struct sf::ContextSettings const &)" (__imp_??0RenderWindow@sf@@QAE@VVideoMode@1@ABVString@1@IABUContextSettings@1@@Z) referenced in function "public: void __thiscall CCommandHandler::DrawShapes(void)const " (?DrawShapes@CCommandHandler@@QBEXXZ)
1>CCommandHandler.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (__imp_??1RenderWindow@sf@@UAE@XZ) referenced in function "public: void __thiscall CCommandHandler::DrawShapes(void)const " (?DrawShapes@CCommandHandler@@QBEXXZ)
1>C:\teaching\oop-ips\martynenko\OOP\Lw 4\Debug\task_1_figures.exe : fatal error LNK1120: 26 unresolved externals
alexey-malov commented 4 years ago

проверить под VS 2017 в nuget нет сборок SFML под 2019 студию

alexey-malov commented 4 years ago

https://github.com/MaxMartST/OOP/blob/fa52d1e4b9e7339fe7613229bfe8b1f74862cc6c/Lw%204/task_1_figures/ICanvas.h#L7-L14

alexey-malov commented 4 years ago

https://github.com/MaxMartST/OOP/blob/fa52d1e4b9e7339fe7613229bfe8b1f74862cc6c/Lw%204/task_1_figures/IShape.h#L8-L20

alexey-malov commented 4 years ago

https://github.com/MaxMartST/OOP/blob/fa52d1e4b9e7339fe7613229bfe8b1f74862cc6c/Lw%204/task_1_figures/CCanvas.h#L3

alexey-malov commented 4 years ago

https://github.com/MaxMartST/OOP/blob/fa52d1e4b9e7339fe7613229bfe8b1f74862cc6c/Lw%204/task_1_figures/CCanvas.h#L6-L19

alexey-malov commented 4 years ago
alexey-malov commented 4 years ago