Thread: Unresolved Xternals

  1. #1
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331

    Unresolved Xternals, WTF!!

    ok i have posted the error, and attahced the code as a zip cuz its kinda long. I have linked opengl32.lib, glu32.lib, and glaux.lib to the program, and i have no idea why its not executing. (note it compiles find, it won't execute).

    Code:
    --------------------Configuration: Page49OGL - Win32 Debug--------------------
    Linking...
    LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
    Debug/Page49OGL.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.
    
    Page49OGL.exe - 2 error(s), 0 warning(s)

  2. #2
    Rambling Man
    Join Date
    Jan 2002
    Posts
    1,050
    Hmmm, if I recall correctly, sometimes when you link libraries out of order it won't link properly. Don't ask me for the proper order, either, because I've never used OpenGL before. I've seen this error a ton of times be posted, so you might want to do a search linking errors to find previous resolutions of the problem.

  3. #3
    I lurk
    Join Date
    Aug 2002
    Posts
    1,361
    Project->Settings->Link->Project options
    Remove /subsystem:console

  4. #4
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    that was it man, thnx alot! (the console part)

  5. #5
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    new problem:

    When i click x on the window it doens't close, just stops, is this something in my code?

  6. #6
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Works just fine here, din't even need to include stafx.h

  7. #7
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    my mistake that was the page 38 program, i was talking bout this one:

  8. #8
    Registered User
    Join Date
    Sep 2002
    Posts
    1,640
    Again, worked fine here, dint need to include to stdafx.h

  9. #9
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Originally posted by Travis Dane
    Again, worked fine here, dint need to include to stdafx.h
    that header was auto-included by VC++ because i chose simple app not blank app. When i run it with VC++, and click the red x to close the window, the animation stops but the window stays open till i right click on the window title bar and select close.

  10. #10
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    i don't do open gl yet, but try putting in a case WM_DESTROY, use DestroyWindow, and/or set done to true in the WM_CLOSE and WM_DESTROY rather than just checking in your main loop.

  11. #11
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    Code:
    case WM_DESTROY:
    done = true;
    break;
    fixed it, thnx man.

  12. #12
    Unregistered Leeman_s's Avatar
    Join Date
    Oct 2001
    Posts
    753
    any time

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. debug to release modes
    By DavidP in forum Game Programming
    Replies: 5
    Last Post: 03-20-2003, 03:01 PM
  5. Unresolved external symbols in OGL
    By Shadow12345 in forum Game Programming
    Replies: 4
    Last Post: 08-04-2002, 09:46 PM