Thread: SDL and mingw. Please help.

  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    7

    SDL and mingw. Please help.

    having problems comppiling SDL project in mingw.

    rite now, for tests, i only have 1 line of code:

    #include <SDL/SDL.h>

    Here is the error:

    \mingw\lib\libmingw32.a(main.o):main.c|| undefined reference to `WinMain@16'|

    Im fairly new to c++ but have quickly learned a lot of the core language concepts, I just have problems using libraries.

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Im fairly new to c++ but have quickly learned a lot of the core language concepts...
    Did you cover the part that says every program has to have a main?

  3. #3
    Registered User
    Join Date
    Aug 2010
    Posts
    7

    no

    thanks, I found and example and realized i needed to add some arguments to the main function as well.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SDL Window opening with Console Window
    By carrotcake1029 in forum Windows Programming
    Replies: 2
    Last Post: 12-23-2008, 03:32 PM
  2. Hard time having SDL and OpenGL work together
    By indigo0086 in forum Game Programming
    Replies: 5
    Last Post: 07-05-2007, 10:21 AM
  3. SDL and MinGW Studio
    By Vicious in forum Tech Board
    Replies: 0
    Last Post: 07-30-2004, 09:59 PM
  4. Cannot create SDL window!!(PLEASE HELP!)
    By SyntaxBubble in forum Game Programming
    Replies: 2
    Last Post: 05-08-2002, 04:04 PM