Thread: unresolved external symbol winmain 16

  1. #1
    Banned
    Join Date
    Jan 2003
    Posts
    1,708

    unresolved external symbol winmain 16

    How am I getting this linker error? These are the libraries I'm linking to:

    Code:
    #include <windows.h>
    #include <gl\gl.h>			
    #include <gl\glu.h>			
    #include <gl\glaux.h>		
    #include <fstream.h>
    #include <stdio.h>
    #include <time.h>
    #include <math.h>
    For some reason I only get the error every once in a while

    EDIT: it probably has to do with the fact that I'm not using the current standard, but that should be perfectly all right (I actually need it in this case). I didnt' include using namespace std; in any of my other files, and I'm not trying to include any headers that are standard (at least I can't find any). HmmMmmMmmMm I'm going to have a broken keyboard tonight
    Last edited by Silvercord; 02-05-2003 at 05:21 PM.

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    are you building console or win32api. if console, you're program is looking of api main.

  3. #3
    Banned
    Join Date
    Jan 2003
    Posts
    1,708
    building win32api, it has winmain

    EDIT: deleting all my object files in the output folder (debug right now) and then rebuilding always solves the problem, but then i always get the error again sometime later

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling sample DarkGDK Program
    By Phyxashun in forum Game Programming
    Replies: 6
    Last Post: 01-27-2009, 03:07 AM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  5. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM