compile: undefined reference to WinMain@16

This is a discussion on compile: undefined reference to WinMain@16 within the C++ Programming forums, part of the General Programming Boards category; [Linker error] undefined reference to `WinMain@16' what is that??? and how can I fix it ? I'm using Bloodshed Dev-C++ ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,505
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 12-16-2008, 07: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, 03: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-28-2005, 11:01 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21