Thread: compile: undefined reference to WinMain@16

  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    20

    compile: undefined reference to WinMain@16

    [Linker error] undefined reference to `WinMain@16'

    what is that??? and how can I fix it ?

    I'm using Bloodshed Dev-C++ compiler, and I've included:

    <windows.h>
    <iostream>
    <string>

  2. #2
    vae victus! skorman00's Avatar
    Join Date
    Nov 2003
    Posts
    594
    it means you don't have a winmain, something about your winmain is ........ing it off, or your project settings are off.

    Are you aware there is a windows programming section on this forum?
    Last edited by skorman00; 06-08-2004 at 12:56 PM.

  3. #3
    Registered User
    Join Date
    May 2004
    Posts
    20
    hmm... Didn't think what I wrote was windows writing, but I'll move my question to that forum then

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 12-16-2008, 08:00 PM
  2. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06:54 PM
  3. undefined reference error while linking..help
    By rapture in forum C++ Programming
    Replies: 4
    Last Post: 12-04-2007, 04:54 AM
  4. Question about OpenGL/Linux
    By Ideswa in forum Linux Programming
    Replies: 12
    Last Post: 09-10-2006, 05:56 AM
  5. nehe opengl prob
    By bluehead in forum C++ Programming
    Replies: 6
    Last Post: 03-29-2005, 12:01 AM