1
Window / SFML\Window.hpp gives cstdlib errors
« on: May 19, 2010, 02:02:23 am »
Ok Laurent, thanks for your help. Now, if I can bother you one more time .
Here's my code again:
Isn't this the correct way to statically link the libraries? I'm also in debug mode. This seems to work ok if I don't use the static library.
Linker errors: (not entire list, its pretty long)
Here's my code again:
Code: [Select]
#include <SFML/Window.hpp>
#pragma comment(lib, "sfml-system-s-d.lib")
#pragma comment(lib, "sfml-window-s-d.lib")
int main()
{
// Create the main window
sf::Window App(sf::VideoMode(800, 600, 32), "SFML Window");
bool Running = true;
while (Running)
{
App.Display();
}
return EXIT_SUCCESS;
}
Isn't this the correct way to statically link the libraries? I'm also in debug mode. This seems to work ok if I don't use the static library.
Linker errors: (not entire list, its pretty long)
Code: [Select]
Error 50 error LNK1120: 12 unresolved externals C:\Users\epidemicz\documents\visual studio 2010\Projects\sfml_ogl_testing\Debug\sfml_ogl_testing.exe sfml_ogl_testing
Error 19 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::_Container_base_secure::~_Container_base_secure(void)" (__imp_??1_Container_base_secure@std@@QAE@XZ) C:\Users\epidemicz\documents\visual studio 2010\Projects\sfml_ogl_testing\sfml_ogl_testing\sfml-window-s-d.lib(VideoMode.obj) sfml_ogl_testing
Error 25 error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (__imp_??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV01@@Z) C:\Users\epidemicz\documents\visual studio 2010\Projects\sfml_ogl_testing\sfml_ogl_testing\sfml-window-s-d.lib(WindowImpl.obj) sfml_ogl_testing
Error 27 error LNK2001: unresolved external symbol "__declspec(dllimport) public: char const * __thiscall std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >::c_str(void)const " (__imp_?c_str@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEPBDXZ) C:\Users\epidemicz\documents\visual studio 2010\Projects\sfml_ogl_testing\sfml_ogl_testing\sfml-window-s-d.lib(WindowImplWin32.obj) sfml_ogl_testing