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

Author Topic: Undefined reference to...  (Read 4191 times)

0 Members and 2 Guests are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Undefined reference to...
« Reply #15 on: July 12, 2012, 10:14:28 pm »
Hmm... it looks ok.
Laurent Gomila - SFML developer

NekoFuu

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Undefined reference to...
« Reply #16 on: July 12, 2012, 10:25:01 pm »
So..from what you're saying... there's really no indication as to why it's not working?
Could it possibly be a bug in 2.0?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Undefined reference to...
« Reply #17 on: July 12, 2012, 10:46:06 pm »
It works for me with the exact same configuration and project file.

It shouldn't make a difference, but can you show your code?
Laurent Gomila - SFML developer

NekoFuu

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Undefined reference to...
« Reply #18 on: July 12, 2012, 10:51:46 pm »
TL;DR: I fixed it.

What was wrong:
I previously used to use the Dev-Cpp IDE and I must have installed MinGW32 with Dev-cpp. When I installed Code::Blocks the first time, I either didn't install the MinGW32 bundle, or it detected the MinGW32 that as installed with Dev-cpp by default. Going through all these problems with what I thought was me installing SFML incorrectly, I began looking through random options and various tabs inside of those options. Inside of Codeblocks I stumbled upon the "Toolchain executbables" tab. That's when I noticed that the compiler was the one set by Dev-cpp. I moved installation directory to the variation I installed with Code::blocks. The version that I installed with codeblocks was the version that had a Path set. I believe the version that was installed with dev-cpp was an older version, because after I switched the installation directories around, everything worked fine.

Thanks for trying to help. =^_^=
« Last Edit: July 13, 2012, 12:17:18 am by NekoFuu »