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

Author Topic: stupid errors :(  (Read 2123 times)

0 Members and 1 Guest are viewing this topic.

ANtY

  • Newbie
  • *
  • Posts: 3
    • View Profile
stupid errors :(
« on: May 29, 2010, 03:35:51 pm »
i tried to display window and i got that errors:

Quote
1>  main.cpp
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::Window::~Window(void)" (__imp_??1Window@sf@@UAE@XZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Window::Display(void)" (__imp_?Display@Window@sf@@QAEXXZ) referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Window::Window(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_??0Window@sf@@QAE@VVideoMode@1@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@KABUWindowSettings@1@@Z) referenced in function _main
1>main.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 _main

Walker

  • Full Member
  • ***
  • Posts: 181
    • View Profile
stupid errors :(
« Reply #1 on: May 29, 2010, 04:06:41 pm »
It's a linking issue. Read the "Getting started" tutorial for the relevant IDE - they cover setting up the linker.

Sirt

  • Newbie
  • *
  • Posts: 27
    • View Profile
stupid errors :(
« Reply #2 on: May 29, 2010, 04:13:19 pm »
Have you added SFML_DYNAMIC in the options to the preprosser difinitions.
Well I had a similar error under vc++ 2005 until I added that macro.

 

anything