Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express  (Read 5106 times)

0 Members and 1 Guest are viewing this topic.

helo

  • Newbie
  • *
  • Posts: 14
    • View Profile
[SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express
« on: October 23, 2009, 04:53:39 pm »
I tried to Compile width Visual c++ 2008 the Test-Code from the Setting up Tutorial  but I always get these errors:
Quote
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: virtual __thiscall sf::RenderWindow::~RenderWindow(void)" (??1RenderWindow@sf@@UAE@XZ)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall sf::Window::Display(void)" (?Display@Window@sf@@QAEXXZ)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall sf::RenderTarget::Clear(class sf::Color const &)" (?Clear@RenderTarget@sf@@QAEXABVColor@2@@Z)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall sf::Color::Color(unsigned char,unsigned char,unsigned char,unsigned char)" (??0Color@sf@@QAE@EEEE@Z)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: void __thiscall sf::Window::Close(void)" (?Close@Window@sf@@QAEXXZ)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: bool __thiscall sf::Window::GetEvent(class sf::Event &)" (?GetEvent@Window@sf@@QAE_NAAVEvent@2@@Z)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: bool __thiscall sf::Window::IsOpened(void)const " (?IsOpened@Window@sf@@QBE_NXZ)" in Funktion "_main".
1>main.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol ""public: __thiscall sf::RenderWindow::RenderWindow(class sf::VideoMode,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,unsigned long,struct sf::WindowSettings const &)" (??0RenderWindow@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z)" in Funktion "_main".


I think I have forgot something or done something wrong, but I have no idea what;

I´ve done:
1.)Compiled the Build-Projects in all possible ways(dll-static...)
2.)added the directories (lib, include)
3.)created the project, copied the code and added the additional linker depencies
4.)when i tried to use the dynamik linked library i added this entry for the präprocessor , too

what are the errors about, what causes them, what did I forgot?
{thanks for help :wink: }

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
SFML / OS X developer

helo

  • Newbie
  • *
  • Posts: 14
    • View Profile
[SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express
« Reply #2 on: October 24, 2009, 01:10:13 pm »
I don´t think so,  but anyway, I downloaded sfml again, compiled it and now my errors are disappeared.
 :oops:
Though thanks for answering !

helo

  • Newbie
  • *
  • Posts: 14
    • View Profile
[SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express
« Reply #3 on: October 25, 2009, 05:50:44 pm »
I thought it was solved, but it isn´t. I just got another test-example-code.
The errors occur every time I try to use the RenderingWindow-Class.
Any idea what can cause this errors?

Quote from: "Hiura"
Is the same error? http://www.sfml-dev.org/forum/viewtopic.php?t=1553&highlight=lnk2019

It is the same Linker Error, but this thread don´t really help me.

helo

  • Newbie
  • *
  • Posts: 14
    • View Profile
[SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express
« Reply #4 on: October 27, 2009, 08:09:46 pm »
Is there noone with an idea?
Then I have to switch to codeblocks^^

Hiura

  • SFML Team
  • Hero Member
  • *****
  • Posts: 4321
    • View Profile
    • Email
[SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express
« Reply #5 on: October 27, 2009, 08:48:26 pm »
I you switch to another IDE then try codelite.
SFML / OS X developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
[SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express
« Reply #6 on: October 27, 2009, 08:49:33 pm »
Did you link to sfml-window.lib and sfml-graphics.lib in your project settings ?
Laurent Gomila - SFML developer

helo

  • Newbie
  • *
  • Posts: 14
    • View Profile
[SOLVED]Linkertoolfehler LNK2019 - Visual C++ 2008 Express
« Reply #7 on: October 27, 2009, 09:38:13 pm »
I recognized it a few moments ago when I had already installed CodeBlocks and wanted too set this thread solved, but thanks for answering silly questions :oops: .
 
By the way you made a very nice library :D