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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - iinsyd

Pages: [1]
1
General / Still getting unresolved external with libs linked.
« on: September 07, 2011, 09:59:44 am »
Wow, it was that simple.. I feel stupid now, but it's all learning experience. Thanks.

2
General / Still getting unresolved external with libs linked.
« on: September 07, 2011, 01:13:00 am »
I have compiled the SFML 2.0 libraries in both debug/release modes as well as the static/release ones. But when i try to compile a simple program (defining only an sf::RenderWindow) I still get unresolved external symbol..

Visual C++ 2010 Express, Win7 64bit

Any help?

I have my include/lib directories added to the VC++ Directories options.

Debug Additional Dependencies (with SFML_DYNAMIC preprocessor):
Code: [Select]

sfml-graphics-d.lib
sfml-audio-d.lib
sfml-window-d.lib
sfml-system-d.lib
sfml-network-d.lib


Relase Additional Dependencies (with and without SFML_STATIC preprocessor accordingly)

Tried both of these:
Code: [Select]

sfml-graphics.lib
sfml-audio.lib
sfml-window.lib
sfml-system.lib
sfml-network.lib

Code: [Select]

sfml-graphics-s.lib
sfml-audio-s.lib
sfml-window-s.lib
sfml-system-s.lib
sfml-network-s.lib


All tried using a default empty project with console subsystem (no need for sfml-main).

My C++ code (main.cpp):
Code: [Select]
#include <SFML/Graphics.hpp>

int main() {
sf::RenderWindow Game(sf::VideoMode(800,600,32),"Test window");
}


The exact error (in debug mode):
Code: [Select]
error LNK2019: unresolved external symbol "__declspec(dllimport) 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 &)" (__imp_??0RenderWindow@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z) referenced in function _main

(in release mode, with and without statics):
Code: [Select]
error LNK2001: unresolved external 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)

Thanks in advance, iiNsyD.

PS: Post if you need more info to help :)

Pages: [1]
anything