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

Author Topic: Problem with 'Opening a Window' Tutorial  (Read 916 times)

0 Members and 1 Guest are viewing this topic.

tool_the_ted

  • Newbie
  • *
  • Posts: 2
    • View Profile
Problem with 'Opening a Window' Tutorial
« on: April 04, 2012, 08:49:02 am »
Here is my setup:

I copy/paste code from website.

In VC++ directories, I set include and library directories as stated in tutorial.
In Linker -> Input, I add dependency 'sfml-window.lib' and add the corresponding .dll to same directory as .exe.
Am running in 'Release' mode. Cleaned and rebuilt.

When I run the project under this configuration, it tells me that 'sfml-system.dll' is needed. Which is weird because the corresponding .lib is not in the Linker->Input dependencies. I guess the libraries depend upon one another (side question: is there any way to see this besides seeing the error message?)

When I put the 'sfml-system.dll' in the proper folder, I get a buffer overrun error. Where am I going wrong?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Problem with 'Opening a Window' Tutorial
« Reply #1 on: April 04, 2012, 09:43:44 am »
If you're using the 1.6 precompiled binaries for VC++ 2008 with another version of VC++, it won't work. You must recompile SFML.
Laurent Gomila - SFML developer

tool_the_ted

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Problem with 'Opening a Window' Tutorial
« Reply #2 on: April 04, 2012, 09:47:56 am »

 

anything