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

Author Topic: SFML2 and Visual Studio 2010  (Read 9300 times)

0 Members and 1 Guest are viewing this topic.

Incubbus

  • Newbie
  • *
  • Posts: 12
    • ICQ Messenger - 315161720
    • View Profile
    • http://incubbus.eu
SFML2 and Visual Studio 2010
« Reply #15 on: April 26, 2010, 02:07:50 am »
If I want to run the sample from the documentations first page... what libs do i have to include and which macros to define?...

i get way over 250 errors... 51 unresolved external symbols...

e.g.:Error   311   error LNK2001: unresolved external symbol "__declspec(dllimport) bool __cdecl std::operator==<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 &,char const *)" (__imp_??$?8DU?$char_traits@D@std@@V?$allocator@D@1@@std@@YA_NABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@0@PBD@Z)   C:\Users\Incubbus\Documents\Visual Studio 2010\Projects\Zeros-Test\Zeros-Test\sfml-graphics-s-d.lib(ImageLoader.obj)

Incubbus

  • Newbie
  • *
  • Posts: 12
    • ICQ Messenger - 315161720
    • View Profile
    • http://incubbus.eu
SFML2 and Visual Studio 2010
« Reply #16 on: April 26, 2010, 03:01:36 am »
ok... somehow the compilation and linking succeeds...

but then when the console window does appear there is an system error telling me that the sfml-audio.dll does not exist (and hell it does)...

Incubbus

  • Newbie
  • *
  • Posts: 12
    • ICQ Messenger - 315161720
    • View Profile
    • http://incubbus.eu
SFML2 and Visual Studio 2010
« Reply #17 on: April 26, 2010, 02:59:17 pm »
i think im going back to DirectX... it seems way easier to get it running ^^...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
SFML2 and Visual Studio 2010
« Reply #18 on: April 26, 2010, 03:09:41 pm »
Quote
but then when the console window does appear there is an system error telling me that the sfml-audio.dll does not exist (and hell it does)...

If it says so, it must be right... ;)

Is this DLL in a directory contained in the PATH evironment variable, or in the same directory as the executable?
Laurent Gomila - SFML developer

Incubbus

  • Newbie
  • *
  • Posts: 12
    • ICQ Messenger - 315161720
    • View Profile
    • http://incubbus.eu
SFML2 and Visual Studio 2010
« Reply #19 on: April 26, 2010, 03:46:08 pm »
Quote
Is this DLL in a directory contained in the PATH evironment variable, or in the same directory as the executable?


It is in an directoy on my desktop and I did make an entry in the VC-Directories property page

On the following screenshot I show the property pages setting, the error(im sorry - its in german, but it says:
Quote
The program can not be started, because sfml-system-s-d.dll is missing on the system. Please reinstall the application...


[/code]


EDIT: I even did redownload the sfml-package...


EDIT 2: If i copy the dll into the exe-directory and retry running the application, there does occur an application error, that says:
Quote
The Application could not start correctly (0xc0150002). Click "OK" to close the Application.
[/b]

Incubbus

  • Newbie
  • *
  • Posts: 12
    • ICQ Messenger - 315161720
    • View Profile
    • http://incubbus.eu
SFML2 and Visual Studio 2010
« Reply #20 on: April 28, 2010, 12:17:53 am »
and... any clues?...

lukaszw

  • Newbie
  • *
  • Posts: 1
    • View Profile
SFML2 and Visual Studio 2010
« Reply #21 on: June 12, 2010, 11:12:54 am »
I had the same problem as it's shown  at the first post. To solve it I recompiled the SFML solution in configuration Release DLL witht runtime library set to Multu-threaded DLL. And now - it works!

Zweistein

  • Newbie
  • *
  • Posts: 29
    • View Profile
SFML2 and Visual Studio 2010
« Reply #22 on: June 12, 2010, 06:04:05 pm »
through you pragma comment the -s-d lib, why does he want a dll???

Try to put that specific dll in the project homedirectory. it should be where the *.sln file is.

 

anything