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

Author Topic: Event.Type doesn't work  (Read 7672 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Event.Type doesn't work
« Reply #15 on: March 03, 2011, 11:16:37 pm »
But which one did you get from the SVN? "trunk" or "branches/sfml2"?
Laurent Gomila - SFML developer

M squared

  • Newbie
  • *
  • Posts: 22
    • View Profile
Event.Type doesn't work
« Reply #16 on: March 04, 2011, 08:34:36 pm »
Quote from: "Laurent"
But which one did you get from the SVN? "trunk" or "branches/sfml2"?

trunk

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Event.Type doesn't work
« Reply #17 on: March 04, 2011, 10:16:24 pm »
So this is not SFML 2.
Laurent Gomila - SFML developer

M squared

  • Newbie
  • *
  • Posts: 22
    • View Profile
Event.Type doesn't work
« Reply #18 on: March 04, 2011, 11:32:20 pm »
Quote from: "Laurent"
So this is not SFML 2.

Well, i though it was.... But it was trunk i got from the svn checkout.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Event.Type doesn't work
« Reply #19 on: March 04, 2011, 11:49:35 pm »
Ok ok.

Sorry for asking you again, but can you tell me which SFML libraries you're linking (in "linker" -> "additional inputs")? And which preprocessor definitions you added (like SFML_STATIC).
Laurent Gomila - SFML developer

M squared

  • Newbie
  • *
  • Posts: 22
    • View Profile
Event.Type doesn't work
« Reply #20 on: March 05, 2011, 10:23:58 pm »
Quote from: "Laurent"
Ok ok.

Sorry for asking you again, but can you tell me which SFML libraries you're linking (in "linker" -> "additional inputs")? And which preprocessor definitions you added (like SFML_STATIC).

in linker
sfml-window-s-d.lib
sfml-system-s-d.lib
sfml-graphics-s-d.lib

for preproccesor
WIN32
SFML_STATIC
_DEBUG
_CONSOLE

the only one I added was SFML_STATIC

Sorry for all the trouble i'm rather new to include file and directories and such.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Event.Type doesn't work
« Reply #21 on: March 05, 2011, 10:50:16 pm »
You don't need SFML_STATIC, this one is specific to SFML 2. But anyway, that doesn't change anything.

I read your link errors again and realized that they have nothing to do with SFML. I don't know why, but somehow your project doesn't link to the default Windows libraries (normally it is always done implicitely by default).

I'm not sure, but I think that adding gdi32.lib, user32.lib and kernel32.lib should solve the problem. If it's not enough, just search the remaining undefined symbols on the MSDN and see in which library they are defined.
Laurent Gomila - SFML developer

M squared

  • Newbie
  • *
  • Posts: 22
    • View Profile
Event.Type doesn't work
« Reply #22 on: March 06, 2011, 06:51:02 pm »
Quote from: "Laurent"
You don't need SFML_STATIC, this one is specific to SFML 2. But anyway, that doesn't change anything.

I read your link errors again and realized that they have nothing to do with SFML. I don't know why, but somehow your project doesn't link to the default Windows libraries (normally it is always done implicitely by default).

I'm not sure, but I think that adding gdi32.lib, user32.lib and kernel32.lib should solve the problem. If it's not enough, just search the remaining undefined symbols on the MSDN and see in which library they are defined.

That did it!
Thanks, I really appreciate all your time.