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

Author Topic: [Solved] Linking errors at sf::RenderTarget - new subversion  (Read 3183 times)

0 Members and 1 Guest are viewing this topic.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Hi,
I just downloaded the current SVN version of SFML. But when I try to run my program, I get the following linker errors:
Code: [Select]
1>Project.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: class sf::View & __thiscall sf::RenderTarget::GetDefaultView(void)" (?GetDefaultView@RenderTarget@sf@@QAEAAVView@2@XZ)".
1>Project.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: void __thiscall sf::RenderTarget::SetView(class sf::View const &)" (?SetView@RenderTarget@sf@@QAEXABVView@2@@Z)".
1>Project.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall sf::RenderTarget::Draw(class sf::Drawable const &)" (?Draw@RenderTarget@sf@@UAEXABVDrawable@2@@Z)".
1>sfml-graphics-s.lib(RenderWindow.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual void __thiscall sf::RenderTarget::Draw(class sf::Drawable const &)" (?Draw@RenderTarget@sf@@UAEXABVDrawable@2@@Z)".
1>sfml-graphics-s.lib(RenderWindow.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: __thiscall sf::RenderTarget::RenderTarget(void)" (??0RenderTarget@sf@@IAE@XZ)".
1>sfml-graphics-s.lib(RenderWindow.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: virtual __thiscall sf::RenderTarget::~RenderTarget(void)" (??1RenderTarget@sf@@UAE@XZ)".
1>sfml-graphics-s.lib(RenderWindow.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: void __thiscall sf::RenderTarget::Initialize(void)" (?Initialize@RenderTarget@sf@@IAEXXZ)".
1>sfml-graphics-s.lib(RenderWindow.obj) : error LNK2001: Nicht aufgelöstes externes Symbol ""public: class sf::View const & __thiscall sf::RenderTarget::GetView(void)const " (?GetView@RenderTarget@sf@@QBEABVView@2@XZ)".


I am running in release mode, I also rebuilt the SFML version in static release configuration.

I use the CRT version Multithreaded-DLL (/MD). Additional linker dependencies are:
sfml-graphics-s.lib sfml-window-s.lib sfml-system-s.lib

The path C:\...\SFML\lib\vc2008 is added to library directories, too. I really don't know what is wrong because my previous SVN version (before release of v1.3) worked without problems. And after recompiling the SFML source it should work fine, shouldn't it? Or is the sf::RenderTarget class not ready to use yet or still bugged?

Edit: Seems to be a bug in SVN, the official SFML version 1.3 works fine.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
[Solved] Linking errors at sf::RenderTarget - new subversion
« Reply #1 on: July 06, 2008, 01:49:02 pm »
Sorry, I totally forgot to add the new files in the VC2008 solution :lol:

I do it right now.
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
[Solved] Linking errors at sf::RenderTarget - new subversion
« Reply #2 on: July 06, 2008, 05:24:52 pm »
Quote from: "Laurent"
Sorry, I totally forgot to add the new files in the VC2008 solution :lol:

No problem, I am currently working with version 1.3 ;)
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development: