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

Author Topic: visual c++ 2008: why is there a command prompt?  (Read 4609 times)

0 Members and 1 Guest are viewing this topic.

93interactive

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • http://93-interactive.com
visual c++ 2008: why is there a command prompt?
« on: September 01, 2009, 05:51:21 pm »
hello,

i am trying to compile a sfml project on windows vista via visual c++ 2008.

i have installed sfml 1.5 and in general it works, but the examples in the sfml zip do *not* show up a command prompt.

my own project is always opening a command prompt window before opening the application window, so i have two windows open.

i have tried to follow the docs step by step, but i am a total visual c++ n00b, i'm more used to makefiles under unix, maybe i missed something.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
visual c++ 2008: why is there a command prompt?
« Reply #1 on: September 01, 2009, 06:19:36 pm »
You must create a "Windows application" project, not a "Console" one (you can change it in your project's settings, under "Linker" / "System" / "Sub-system").

Then you have to link to sfml-main.lib.
Laurent Gomila - SFML developer

93interactive

  • Newbie
  • *
  • Posts: 39
    • View Profile
    • http://93-interactive.com
visual c++ 2008: why is there a command prompt?
« Reply #2 on: September 01, 2009, 06:36:49 pm »
thanx, works fine

 

anything