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

Author Topic: Compiling under MinGW  (Read 713 times)

0 Members and 1 Guest are viewing this topic.

johnki

  • Newbie
  • *
  • Posts: 2
    • View Profile
Compiling under MinGW
« on: November 30, 2011, 01:52:21 pm »
From what I've observed, it's a small issue, but code compiled under MinGW directly (as in off of the command line, as opposed to through Code::Blocks) will open up a command line before opening the application.

I haven't attempted compiling any SFML applications any other ways, however, so I may have just missed something, but the pre-compiled examples don't, in fact, open the command line, whereas the pong example compiled under MinGW did.

Again, just a small thing, and mostly figured I'd ask in case there was a way to keep it from happening.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Compiling under MinGW
« Reply #1 on: November 30, 2011, 02:43:25 pm »
You must pass the appropriate linker flag when you compile. I think it's "-mwindows".
Laurent Gomila - SFML developer

johnki

  • Newbie
  • *
  • Posts: 2
    • View Profile
Compiling under MinGW
« Reply #2 on: November 30, 2011, 05:03:27 pm »
Ah, that's it. Thanks :)