Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Error c0x32.obj

  1. #1
    Intern Contributor
    Join Date
    Jul 2003
    Location
    va beach
    Posts
    64

    Error c0x32.obj

    I am getting a compile error from unresolve external reference from _main in c0x32.obj. I am trying to compile one of NeHe's tutorials using BC++5. Under the WinAPI I thought Main didn't have to be declared for a screensaver, just the three API functions.

  2. #2
    Intern Contributor
    Join Date
    Nov 2001
    Posts
    77

    Re: Error c0x32.obj

    A screen saver is just a Windows application which has a .SCR extention, and accepts command line arguments explaining what's supposed to happen. Therefore, all you really need is your WinMain function. Chances are, _main in c0x32.obj is trying to find WinMain, and failing. There's a nice website out there on Windows Screen Saver Programming (sparing the guy's horrible coding principles) at http://www.wischik.com/scr/ . It's a bit outdated for some of it, but it's still accurate.

    [This message has been edited by Nychold (edited 02-20-2004).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •