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

Author Topic: Problem with building  (Read 895 times)

0 Members and 1 Guest are viewing this topic.

Vopek

  • Newbie
  • *
  • Posts: 1
    • View Profile
Problem with building
« on: March 23, 2014, 02:47:57 pm »
Hello i have MinGW with sfml library.
When i want to build my game with cmd>C:\game>build
i see "Bulilding GAME"
and after 3 secs that happens:
c:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/lib/libmingw32.a(main.
o): In function `main':
e:\p\giaw\src\pkg\mingwrt-4.0.3-1-mingw32-src\bld/../mingwrt-4.0.3-1-mingw32-src
/src/libcrt/crt/main.c:91: undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status

what should i do?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10998
    • View Profile
    • development blog
    • Email
Re: Problem with building
« Reply #1 on: March 23, 2014, 02:55:05 pm »
You're probably linking against sfml-main, but didn't change the subsystem to "window" instead of "console".
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/