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

Author Topic: [EDIT] MinGW Issues  (Read 27767 times)

0 Members and 1 Guest are viewing this topic.

lancel00t

  • Newbie
  • *
  • Posts: 18
    • ICQ Messenger - 449212638
    • AOL Instant Messenger - dripdropliner@ao
    • View Profile
    • http://www.watsontechgroup.com
[EDIT] MinGW Issues
« on: September 15, 2007, 12:11:36 am »
Using Windows Vista:
Code will compile properly but the C++ runtime will "Terminate in an unusual way."

Can you please make it so SFML binaries work under Vista again?

[this is probably not a Windows Vista issue]

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
[EDIT] MinGW Issues
« Reply #1 on: September 15, 2007, 02:55:14 pm »
Sure, but... I have no idea about what's wrong (you know, I didn't introduce a bug just to make SFML crash on Vista ;))

So, which code crashes ? What function makes it crash ?
Laurent Gomila - SFML developer

lancel00t

  • Newbie
  • *
  • Posts: 18
    • ICQ Messenger - 449212638
    • AOL Instant Messenger - dripdropliner@ao
    • View Profile
    • http://www.watsontechgroup.com
Further Investigations
« Reply #2 on: September 15, 2007, 06:26:10 pm »
I did some further investigating and discovered that it is not a Vista compatability issue at all. The extent of my investigation includes:
1. Downloaded and installed the latest VC2005 Express Edition + MSDN + MS SQL.
2. Installed the Microsoft Platform SDK.
3. Successfully Compiled SFML libraries.
4. Succssfully installed SFML into VC2005 Express.
5. Ported my application to VC2005 Express.
6. Compiled.
7. And the application ran on Windows Vista!

What does not work is a compiled binary of say ./samples/opengl using MinGW.

Since this has to do with the compilers and not Vista my knowledge would be stretched thin on debugging. All I can tell you is that when using MinGW, upon runtime the application will: "Request that the C++ Runtime Terminate in an Unusual Way..." I also can tell you that the project compiles fine with no errors or warnings using MinGW - but again the binary will not run. I suspect this may have to do with OpenGL but have no real idea.

My original post is erroneous - This is not a Vista issue. I suspect it is a MinGW issue.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
[EDIT] MinGW Issues
« Reply #3 on: September 15, 2007, 07:00:41 pm »
Today, I discovered an issue with MinGW. The MinGW standard library handles very badly everything based on wchar_t, and some code inside the String class crashes (using directly wide strings (like L"hello") makes it work).

I've fixed it, but it will only be available in the next release.
Laurent Gomila - SFML developer

lancel00t

  • Newbie
  • *
  • Posts: 18
    • ICQ Messenger - 449212638
    • AOL Instant Messenger - dripdropliner@ao
    • View Profile
    • http://www.watsontechgroup.com
Many thanks.
« Reply #4 on: September 15, 2007, 07:30:50 pm »
Thank you! I will wait for the next release patiently.  :D