Project is missing SDL_mixer.h; I add it and the compiler gives 77 errors

Started by
18 comments, last by jeffkiwi 8 years, 1 month ago

I quit. This is too stupid. There is no .zip file with source code for SDL_ttf version 1.2 - see the list. Another thing that's wrong with the libsdl website is when you go here and click "SDL TTF for SDL 1.2" it takes you to a page which only shows SDL 2 downloads, not SDL 1.2 which is what it's supposed to be. I'm going to forget about programming until I start the course, then I'll learn from scratch like everybody else. I'm not going to install something from a broken website. We should all expect better than that.

Logging in from unsecured wireless, I hope no-one steals my password (October 22, 2016)
Advertisement

Well, SDL 2.0 has been out for a long while now and although I have never used it from what I have heard it's much better than its predecessor. You cannot really expect deprecated stuff to remain around indefinitely.

Also, I now have the strong suspicion your unresolved externals have a very different source than linking or not linking SDL mixer. Most likely it depends on some Windows multimedia functions which you have to link as well. Of course that would have been immediately obvious had you posted the actual error messages. Which you unfortunately did not.

On a personal note, this is the second time you go towards blaming the tool in this thread. A decent programmer does not blame the tool until he has understood the whole problem and exhausted all options. Placing the blame on the tool early and often is a good way to tick people off and receive less and less help in the future.

I just realised I can use CTRL + A to copy all the error output. I thought it was only possible to copy per line and that there was an output file somewhere.
I don't want to waste too much time on this but here's the error report. I restored my project and my SDL folder from the recycle bin and these look identical to the errors I had earlier:
?

Warning 1 warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library C:\Users\Jeff\Documents\object_project\objectproject\objectproject\MSVCRTD.lib(cinitexe.obj) objectproject
Error 2 error LNK2019: unresolved external symbol "public: bool __thiscall Image::load(char * const,int,int)" (?load@Image@@QAE_NQADHH@Z) referenced in function "public: bool __thiscall Factory::init(class Map *)" (?init@Factory@@QAE_NPAVMap@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Factory.obj objectproject
Error 3 error LNK2019: unresolved external symbol "public: void __thiscall Image::free(void)" (?free@Image@@QAEXXZ) referenced in function "public: void __thiscall Factory::free(void)" (?free@Factory@@QAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Factory.obj objectproject
Error 4 error LNK2001: unresolved external symbol "public: void __thiscall Image::free(void)" (?free@Image@@QAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 5 error LNK2019: unresolved external symbol "public: __thiscall SceneNode::SceneNode(int,int,int,int,int)" (??0SceneNode@@QAE@HHHHH@Z) referenced in function "public: class SceneNode * __thiscall Factory::create(int,int,int)" (?create@Factory@@QAEPAVSceneNode@@HHH@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Factory.obj objectproject
Error 6 error LNK2019: unresolved external symbol "public: void __thiscall Graphics::drawRect(int,int,int,int,int,int,int)" (?drawRect@Graphics@@QAEXHHHHHHH@Z) referenced in function "public: virtual void __thiscall FactoryDemo::draw(class Graphics *)" (?draw@FactoryDemo@@UAEXPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 7 error LNK2019: unresolved external symbol "public: void __thiscall Graphics::clear(int,int,int)" (?clear@Graphics@@QAEXHHH@Z) referenced in function "public: virtual void __thiscall FactoryDemo::draw(class Graphics *)" (?draw@FactoryDemo@@UAEXPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 8 error LNK2019: unresolved external symbol "public: bool __thiscall Input::keyDown(int)" (?keyDown@Input@@QAE_NH@Z) referenced in function "private: void __thiscall FactoryDemo::updateCamera(void)" (?updateCamera@FactoryDemo@@AAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 9 error LNK2019: unresolved external symbol "public: bool __thiscall Input::keyHit(int)" (?keyHit@Input@@QAE_NH@Z) referenced in function "public: virtual void __thiscall FactoryDemo::update(void)" (?update@FactoryDemo@@UAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 10 error LNK2019: unresolved external symbol "public: bool __thiscall Input::mouseHit(int)" (?mouseHit@Input@@QAE_NH@Z) referenced in function "public: virtual void __thiscall FactoryDemo::update(void)" (?update@FactoryDemo@@UAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 11 error LNK2019: unresolved external symbol "public: int __thiscall Input::getMouseX(void)" (?getMouseX@Input@@QAEHXZ) referenced in function "public: virtual void __thiscall FactoryDemo::draw(class Graphics *)" (?draw@FactoryDemo@@UAEXPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 12 error LNK2019: unresolved external symbol "public: int __thiscall Input::getMouseY(void)" (?getMouseY@Input@@QAEHXZ) referenced in function "public: virtual void __thiscall FactoryDemo::draw(class Graphics *)" (?draw@FactoryDemo@@UAEXPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 13 error LNK2019: unresolved external symbol "public: void __thiscall Input::hideCursor(bool)" (?hideCursor@Input@@QAEX_N@Z) referenced in function "public: virtual bool __thiscall FactoryDemo::init(void)" (?init@FactoryDemo@@UAE_NXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 14 error LNK2019: unresolved external symbol "public: bool __thiscall Game::initSystem(char * const,int,int,bool)" (?initSystem@Game@@QAE_NQADHH_N@Z) referenced in function "public: virtual bool __thiscall FactoryDemo::init(void)" (?init@FactoryDemo@@UAE_NXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 15 error LNK2019: unresolved external symbol "public: void __thiscall Game::freeSystem(void)" (?freeSystem@Game@@QAEXXZ) referenced in function "public: virtual void __thiscall FactoryDemo::free(void)" (?free@FactoryDemo@@UAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 16 error LNK2019: unresolved external symbol "public: class Input * __thiscall Game::getInput(void)" (?getInput@Game@@QAEPAVInput@@XZ) referenced in function "public: virtual void __thiscall FactoryDemo::draw(class Graphics *)" (?draw@FactoryDemo@@UAEXPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 17 error LNK2019: unresolved external symbol "public: bool __thiscall Image::load(char * const)" (?load@Image@@QAE_NQAD@Z) referenced in function "public: virtual bool __thiscall FactoryDemo::init(void)" (?init@FactoryDemo@@UAE_NXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 18 error LNK2019: unresolved external symbol "public: void __thiscall Image::draw(int,int,class Graphics *)" (?draw@Image@@QAEXHHPAVGraphics@@@Z) referenced in function "public: virtual void __thiscall FactoryDemo::draw(class Graphics *)" (?draw@FactoryDemo@@UAEXPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 19 error LNK2019: unresolved external symbol "public: int __thiscall Image::getWidth(void)" (?getWidth@Image@@QAEHXZ) referenced in function "public: virtual void __thiscall FactoryDemo::draw(class Graphics *)" (?draw@FactoryDemo@@UAEXPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 20 error LNK2019: unresolved external symbol "public: int __thiscall Image::getHeight(void)" (?getHeight@Image@@QAEHXZ) referenced in function "public: virtual void __thiscall FactoryDemo::draw(class Graphics *)" (?draw@FactoryDemo@@UAEXPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 21 error LNK2019: unresolved external symbol "public: bool __thiscall Map::load(char * const,char * const)" (?load@Map@@QAE_NQAD0@Z) referenced in function "public: virtual bool __thiscall FactoryDemo::init(void)" (?init@FactoryDemo@@UAE_NXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 22 error LNK2019: unresolved external symbol "public: void __thiscall Map::draw(int,int,int,class Graphics *)" (?draw@Map@@QAEXHHHPAVGraphics@@@Z) referenced in function "public: virtual void __thiscall FactoryDemo::draw(class Graphics *)" (?draw@FactoryDemo@@UAEXPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 23 error LNK2019: unresolved external symbol "public: void __thiscall Map::free(void)" (?free@Map@@QAEXXZ) referenced in function "public: virtual void __thiscall FactoryDemo::free(void)" (?free@FactoryDemo@@UAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 24 error LNK2019: unresolved external symbol "public: void __thiscall Rectangle::setSize(int,int)" (?setSize@Rectangle@@QAEXHH@Z) referenced in function "public: virtual bool __thiscall FactoryDemo::init(void)" (?init@FactoryDemo@@UAE_NXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 25 error LNK2019: unresolved external symbol "public: void __thiscall Rectangle::setX(int)" (?setX@Rectangle@@QAEXH@Z) referenced in function "public: virtual bool __thiscall FactoryDemo::init(void)" (?init@FactoryDemo@@UAE_NXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 26 error LNK2019: unresolved external symbol "public: void __thiscall Rectangle::setX2(int)" (?setX2@Rectangle@@QAEXH@Z) referenced in function "private: void __thiscall FactoryDemo::updateCamera(void)" (?updateCamera@FactoryDemo@@AAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 27 error LNK2019: unresolved external symbol "public: void __thiscall Rectangle::setY2(int)" (?setY2@Rectangle@@QAEXH@Z) referenced in function "public: virtual bool __thiscall FactoryDemo::init(void)" (?init@FactoryDemo@@UAE_NXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 28 error LNK2019: unresolved external symbol "public: int __thiscall Rectangle::getX(void)" (?getX@Rectangle@@QAEHXZ) referenced in function "public: virtual void __thiscall FactoryDemo::draw(class Graphics *)" (?draw@FactoryDemo@@UAEXPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 29 error LNK2001: unresolved external symbol "public: int __thiscall Rectangle::getX(void)" (?getX@Rectangle@@QAEHXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 30 error LNK2001: unresolved external symbol "public: int __thiscall Rectangle::getX(void)" (?getX@Rectangle@@QAEHXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 31 error LNK2019: unresolved external symbol "public: int __thiscall Rectangle::getY(void)" (?getY@Rectangle@@QAEHXZ) referenced in function "public: virtual void __thiscall FactoryDemo::draw(class Graphics *)" (?draw@FactoryDemo@@UAEXPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 32 error LNK2001: unresolved external symbol "public: int __thiscall Rectangle::getY(void)" (?getY@Rectangle@@QAEHXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 33 error LNK2001: unresolved external symbol "public: int __thiscall Rectangle::getY(void)" (?getY@Rectangle@@QAEHXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 34 error LNK2019: unresolved external symbol "public: int __thiscall Rectangle::getX2(void)" (?getX2@Rectangle@@QAEHXZ) referenced in function "private: void __thiscall FactoryDemo::updateCamera(void)" (?updateCamera@FactoryDemo@@AAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 35 error LNK2001: unresolved external symbol "public: int __thiscall Rectangle::getX2(void)" (?getX2@Rectangle@@QAEHXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 36 error LNK2001: unresolved external symbol "public: int __thiscall Rectangle::getX2(void)" (?getX2@Rectangle@@QAEHXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 37 error LNK2019: unresolved external symbol "public: void __thiscall Scene::addNode(class SceneNode *)" (?addNode@Scene@@QAEXPAVSceneNode@@@Z) referenced in function "public: virtual void __thiscall FactoryDemo::update(void)" (?update@FactoryDemo@@UAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 38 error LNK2019: unresolved external symbol "public: void __thiscall Scene::removeNode(class SceneNode *)" (?removeNode@Scene@@QAEXPAVSceneNode@@@Z) referenced in function "public: virtual void __thiscall FactoryDemo::free(void)" (?free@FactoryDemo@@UAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 39 error LNK2019: unresolved external symbol "public: void __thiscall Scene::update(void)" (?update@Scene@@QAEXXZ) referenced in function "public: virtual void __thiscall FactoryDemo::update(void)" (?update@FactoryDemo@@UAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 40 error LNK2019: unresolved external symbol "public: void __thiscall Scene::draw(class Rectangle *,class Graphics *)" (?draw@Scene@@QAEXPAVRectangle@@PAVGraphics@@@Z) referenced in function "public: virtual void __thiscall FactoryDemo::draw(class Graphics *)" (?draw@FactoryDemo@@UAEXPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\FactoryDemo.obj objectproject
Error 41 error LNK2019: unresolved external symbol "public: int __thiscall Image::getFrameWidth(void)" (?getFrameWidth@Image@@QAEHXZ) referenced in function "public: __thiscall Flier::Flier(class Image *,int,int,class Map *)" (??0Flier@@QAE@PAVImage@@HHPAVMap@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 42 error LNK2001: unresolved external symbol "public: int __thiscall Image::getFrameWidth(void)" (?getFrameWidth@Image@@QAEHXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 43 error LNK2019: unresolved external symbol "public: int __thiscall Image::getFrameHeight(void)" (?getFrameHeight@Image@@QAEHXZ) referenced in function "public: __thiscall Flier::Flier(class Image *,int,int,class Map *)" (??0Flier@@QAE@PAVImage@@HHPAVMap@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 44 error LNK2001: unresolved external symbol "public: int __thiscall Image::getFrameHeight(void)" (?getFrameHeight@Image@@QAEHXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 45 error LNK2019: unresolved external symbol "public: __thiscall MapNode::MapNode(int,int,int,int,int,bool,class Map *)" (??0MapNode@@QAE@HHHHH_NPAVMap@@@Z) referenced in function "public: __thiscall Flier::Flier(class Image *,int,int,class Map *)" (??0Flier@@QAE@PAVImage@@HHPAVMap@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 46 error LNK2001: unresolved external symbol "public: __thiscall MapNode::MapNode(int,int,int,int,int,bool,class Map *)" (??0MapNode@@QAE@HHHHH_NPAVMap@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 47 error LNK2019: unresolved external symbol "public: __thiscall MapNode::~MapNode(void)" (??1MapNode@@QAE@XZ) referenced in function __unwindfunclet$??0Flier@@QAE@PAVImage@@HHPAVMap@@@Z$0 C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 48 error LNK2001: unresolved external symbol "public: __thiscall MapNode::~MapNode(void)" (??1MapNode@@QAE@XZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 49 error LNK2019: unresolved external symbol "public: void __thiscall MapNode::move(int,int)" (?move@MapNode@@QAEXHH@Z) referenced in function "public: virtual void __thiscall Flier::update(void)" (?update@Flier@@UAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 50 error LNK2001: unresolved external symbol "public: void __thiscall MapNode::move(int,int)" (?move@MapNode@@QAEXHH@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 51 error LNK2019: unresolved external symbol "public: __thiscall Sprite::Sprite(void)" (??0Sprite@@QAE@XZ) referenced in function "public: __thiscall Flier::Flier(class Image *,int,int,class Map *)" (??0Flier@@QAE@PAVImage@@HHPAVMap@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 52 error LNK2001: unresolved external symbol "public: __thiscall Sprite::Sprite(void)" (??0Sprite@@QAE@XZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 53 error LNK2019: unresolved external symbol "public: __thiscall Sprite::~Sprite(void)" (??1Sprite@@QAE@XZ) referenced in function __unwindfunclet$??0Flier@@QAE@PAVImage@@HHPAVMap@@@Z$1 C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 54 error LNK2001: unresolved external symbol "public: __thiscall Sprite::~Sprite(void)" (??1Sprite@@QAE@XZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 55 error LNK2019: unresolved external symbol "public: void __thiscall Sprite::setImage(class Image *)" (?setImage@Sprite@@QAEXPAVImage@@@Z) referenced in function "public: __thiscall Flier::Flier(class Image *,int,int,class Map *)" (??0Flier@@QAE@PAVImage@@HHPAVMap@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 56 error LNK2001: unresolved external symbol "public: void __thiscall Sprite::setImage(class Image *)" (?setImage@Sprite@@QAEXPAVImage@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 57 error LNK2019: unresolved external symbol "public: void __thiscall Sprite::update(void)" (?update@Sprite@@QAEXXZ) referenced in function "public: virtual void __thiscall Flier::update(void)" (?update@Flier@@UAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 58 error LNK2001: unresolved external symbol "public: void __thiscall Sprite::update(void)" (?update@Sprite@@QAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 59 error LNK2019: unresolved external symbol "public: void __thiscall Sprite::draw(int,int,class Graphics *)" (?draw@Sprite@@QAEXHHPAVGraphics@@@Z) referenced in function "public: virtual void __thiscall Flier::draw(class Rectangle *,class Graphics *)" (?draw@Flier@@UAEXPAVRectangle@@PAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 60 error LNK2001: unresolved external symbol "public: void __thiscall Sprite::draw(int,int,class Graphics *)" (?draw@Sprite@@QAEXHHPAVGraphics@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 61 error LNK2019: unresolved external symbol "public: void __thiscall Sprite::setAnimation(int,int,int)" (?setAnimation@Sprite@@QAEXHHH@Z) referenced in function "public: __thiscall Flier::Flier(class Image *,int,int,class Map *)" (??0Flier@@QAE@PAVImage@@HHPAVMap@@@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Flier.obj objectproject
Error 62 error LNK2001: unresolved external symbol "public: void __thiscall Sprite::setAnimation(int,int,int)" (?setAnimation@Sprite@@QAEXHHH@Z) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 63 error LNK2019: unresolved external symbol "public: __thiscall Game::Game(void)" (??0Game@@QAE@XZ) referenced in function "public: __thiscall FactoryDemo::FactoryDemo(void)" (??0FactoryDemo@@QAE@XZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Main.obj objectproject
Error 64 error LNK2019: unresolved external symbol "public: __thiscall Game::~Game(void)" (??1Game@@QAE@XZ) referenced in function __unwindfunclet$??0FactoryDemo@@QAE@XZ$0 C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Main.obj objectproject
Error 65 error LNK2019: unresolved external symbol "public: void __thiscall Game::run(void)" (?run@Game@@QAEXXZ) referenced in function _SDL_main C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Main.obj objectproject
Error 66 error LNK2019: unresolved external symbol "public: __thiscall Image::Image(void)" (??0Image@@QAE@XZ) referenced in function "public: __thiscall Factory::Factory(void)" (??0Factory@@QAE@XZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Main.obj objectproject
Error 67 error LNK2019: unresolved external symbol "public: __thiscall Image::~Image(void)" (??1Image@@QAE@XZ) referenced in function __unwindfunclet$??0Factory@@QAE@XZ$0 C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Main.obj objectproject
Error 68 error LNK2019: unresolved external symbol "public: __thiscall Map::Map(void)" (??0Map@@QAE@XZ) referenced in function "public: __thiscall FactoryDemo::FactoryDemo(void)" (??0FactoryDemo@@QAE@XZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Main.obj objectproject
Error 69 error LNK2019: unresolved external symbol "public: __thiscall Map::~Map(void)" (??1Map@@QAE@XZ) referenced in function __unwindfunclet$??0FactoryDemo@@QAE@XZ$1 C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Main.obj objectproject
Error 70 error LNK2019: unresolved external symbol "public: __thiscall Rectangle::Rectangle(void)" (??0Rectangle@@QAE@XZ) referenced in function "public: __thiscall FactoryDemo::FactoryDemo(void)" (??0FactoryDemo@@QAE@XZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Main.obj objectproject
Error 71 error LNK2019: unresolved external symbol "public: __thiscall Rectangle::~Rectangle(void)" (??1Rectangle@@QAE@XZ) referenced in function __unwindfunclet$??0FactoryDemo@@QAE@XZ$2 C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Main.obj objectproject
Error 72 error LNK2019: unresolved external symbol "public: __thiscall Scene::Scene(void)" (??0Scene@@QAE@XZ) referenced in function "public: __thiscall FactoryDemo::FactoryDemo(void)" (??0FactoryDemo@@QAE@XZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Main.obj objectproject
Error 73 error LNK2019: unresolved external symbol "public: __thiscall Scene::~Scene(void)" (??1Scene@@QAE@XZ) referenced in function __unwindfunclet$??0FactoryDemo@@QAE@XZ$3 C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Main.obj objectproject
Error 74 error LNK2019: unresolved external symbol "public: bool __thiscall Map::checkSolid(int,int)" (?checkSolid@Map@@QAE_NHH@Z) referenced in function "public: virtual void __thiscall Walker::update(void)" (?update@Walker@@UAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 75 error LNK2019: unresolved external symbol "public: int __thiscall Rectangle::getY2(void)" (?getY2@Rectangle@@QAEHXZ) referenced in function "public: virtual void __thiscall Walker::update(void)" (?update@Walker@@UAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 76 error LNK2019: unresolved external symbol "public: void __thiscall SceneNode::remove(void)" (?remove@SceneNode@@QAEXXZ) referenced in function "public: virtual void __thiscall Walker::update(void)" (?update@Walker@@UAEXXZ) C:\Users\Jeff\Documents\object_project\objectproject\objectproject\Walker.obj objectproject
Error 77 error LNK1120: 57 unresolved externals C:\Users\Jeff\Documents\object_project\objectproject\Debug\objectproject.exe objectproject
78 IntelliSense: cannot open source file "SDL.h" c:\Users\Jeff\Documents\object_project\objectproject\Core\Graphics.h 4 1 objectproject
79 IntelliSense: identifier "SDL_Surface" is undefined c:\Users\Jeff\Documents\object_project\objectproject\Core\Graphics.h 9 5 objectproject
80 IntelliSense: identifier "SDL_Surface" is undefined c:\Users\Jeff\Documents\object_project\objectproject\Core\Graphics.h 21 5 objectproject
81 IntelliSense: cannot open source file "SDL.h" c:\Users\Jeff\Documents\object_project\objectproject\Core\Input.h 4 1 objectproject
82 IntelliSense: cannot open source file "SDL.h" c:\Users\Jeff\Documents\object_project\objectproject\Core\Audio.h 4 1 objectproject
83 IntelliSense: cannot open source file "SDL_mixer.h" c:\Users\Jeff\Documents\object_project\objectproject\Core\Audio.h 5 1 objectproject
84 IntelliSense: cannot open source file "SDL_ttf.h" c:\Users\Jeff\Documents\object_project\objectproject\Core\Game.h 4 1 objectproject
85 IntelliSense: cannot open source file "SDL_image.h" c:\Users\Jeff\Documents\object_project\objectproject\Core\Image.h 5 1 objectproject
86 IntelliSense: identifier "SDL_Surface" is undefined c:\Users\Jeff\Documents\object_project\objectproject\Core\Image.h 10 5 objectproject
87 IntelliSense: identifier "SDLK_1" is undefined c:\Users\Jeff\Documents\object_project\objectproject\FactoryDemo.cpp 47 19 objectproject
88 IntelliSense: identifier "SDLK_2" is undefined c:\Users\Jeff\Documents\object_project\objectproject\FactoryDemo.cpp 50 19 objectproject
89 IntelliSense: identifier "SDLK_3" is undefined c:\Users\Jeff\Documents\object_project\objectproject\FactoryDemo.cpp 53 19 objectproject
90 IntelliSense: identifier "SDLK_4" is undefined c:\Users\Jeff\Documents\object_project\objectproject\FactoryDemo.cpp 56 19 objectproject
91 IntelliSense: identifier "SDLK_LEFT" is undefined c:\Users\Jeff\Documents\object_project\objectproject\FactoryDemo.cpp 110 17 objectproject
92 IntelliSense: identifier "SDLK_RIGHT" is undefined c:\Users\Jeff\Documents\object_project\objectproject\FactoryDemo.cpp 115 20 objectproject

Logging in from unsecured wireless, I hope no-one steals my password (October 22, 2016)

I'm not familiar with SDL but my guess would be these errors have nothing to do with SDL but originate in whatever framework your book supplies, probably because utility code it expects is not compiled/linked together.

Only the IntelliSense errors mentions SDL (and they seem to indicate include directories or folder structure errors).

The main bulk of your errors do not seem to refer to SDL at all. Like BitMaster says, it's probably something from your book/framework that needs to be setup/linked differently.

Hello to all my stalkers.

Okay that's weird I was under the impression that the code in the book was good. I'm not sure what the heck "utility code" means. On things not being linked, I ignorantly assume BitMaster is talking about header files or other includes not being linked from within the source code itself (#includes) - OR it's to do with the project settings in Visual Studio. Which one?

Logging in from unsecured wireless, I hope no-one steals my password (October 22, 2016)

Not to sound like d***, but what you describing are the basis for c++ compiling/linking and you need to understand this before trying complex bits. There is a ton of resources on the web which explain how compiling and linking work, how to include library, etc. There is no shortcut in C++, all is hard and takes many years to get even decent in it.

Maybe, try different languages first, like python, C#, Java, etc and see how you like. You can the concentrate on making the game and not fighting tools.

As far a source code from book, most of literature which comes in with source, are riddled with errors and missing dependencies and many times do not work out of the box.

Said a little differently, something somewhere needs to provide all of these:

"public: bool Image::load(char * const,int,int)"
"public: void Image::free(void)"
"public: void Graphics::drawRect(int,int,int,int,int,int,int)"
"public: void Graphics::clear(int,int,int)"
"public: bool Input::keyDown(int)"
"public: bool Input::keyHit(int)"
"public: bool Input::mouseHit(int)"
"public: int Input::getMouseX(void)"
"public: int Input::getMouseY(void)"
"public: void Input::hideCursor(bool)"
...
etc.

These are probably in a library or other source code provided in your book. You have pointed to the header files that declare they exist, but you did not provide the linker with the actual function bodies or definitions.

They might be a collection of .cpp files or they might be a .lib or .dll or some other file.

If they are coming from SDL, and I don't know SDL enough to know if that's what it is looking for or not, then they might come with SDL's libraries.

Somewhere those functions are implemented, and you need to tell your linker where they are.


If they are coming from SDL, and I don't know SDL enough to know if that's what it is looking for or not, then they might come with SDL's libraries.

SDL functions/enums/structs are all prefixed with "SDL_".

Hello to all my stalkers.

Not to sound like d***, but what you describing are the basis for c++ compiling/linking and you need to understand this before trying complex bits. There is a ton of resources on the web which explain how compiling and linking work, how to include library, etc. There is no shortcut in C++, all is hard and takes many years to get even decent in it.

Maybe, try different languages first, like python, C#, Java, etc and see how you like. You can the concentrate on making the game and not fighting tools.

As far a source code from book, most of literature which comes in with source, are riddled with errors and missing dependencies and many times do not work out of the box.

I've discovered there's an SDL2 version of the demo code so I will try that... after reading some fundamentals. I have a Blitz Max license but I still want to do C++. After all, I just paid for a book that uses C++.

C# and Java I'll use next year

Said a little differently, something somewhere needs to provide all of these:

"public: bool Image::load(char * const,int,int)"
"public: void Image::free(void)"
"public: void Graphics::drawRect(int,int,int,int,int,int,int)"
"public: void Graphics::clear(int,int,int)"
"public: bool Input::keyDown(int)"
"public: bool Input::keyHit(int)"
"public: bool Input::mouseHit(int)"
"public: int Input::getMouseX(void)"
"public: int Input::getMouseY(void)"
"public: void Input::hideCursor(bool)"
...
etc.

These are probably in a library or other source code provided in your book. You have pointed to the header files that declare they exist, but you did not provide the linker with the actual function bodies or definitions.

They might be a collection of .cpp files or they might be a .lib or .dll or some other file.

If they are coming from SDL, and I don't know SDL enough to know if that's what it is looking for or not, then they might come with SDL's libraries.

Somewhere those functions are implemented, and you need to tell your linker where they are.

Keyboard events and image loading is specific to SDL. It looks like those are user-made functions in the example code, which call bits of SDL.

--

Thanks for the suggestions everyone. I'm going to try the SDL2 version of this program when I get around to it. If I really have to then I'll stop using example programs and write my own from scratch, then I can fix errors as I go. Blitz Max is looking like a good option. One day when I work out how to do these things I'll pay it back to other newbies.

Logging in from unsecured wireless, I hope no-one steals my password (October 22, 2016)

This topic is closed to new replies.

Advertisement