Page 1 of 4 1234 LastLast
Results 1 to 10 of 32

Thread: Help!

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    8

    Help!

    I'm trying to get started in opengl, I tried compiling a simple program, but I get
    LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
    Debug/gl.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.
    Dunno whats going on. Help?

  2. #2
    Member Newbie
    Join Date
    Aug 2002
    Posts
    42

    Re: Help!

    Some people should never be allowed near a compiler.

  3. #3
    Guest

    Re: Help!

    Try doing a search. This topic has been covered many times before.

  4. #4
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    8

    Re: Help!

    Latrans,
    Your response was uncalled for. Or maybe you were born knowing these things.

    Myotis,
    Thanks for the suggestion, but I am not sure what should I use to search for this problem. It is very confusing for me.

  5. #5
    Senior Member Regular Contributor
    Join Date
    Oct 2001
    Location
    Princeton, NJ
    Posts
    380

    Re: Help!

    you created a windows appication, and created at void main() function, but the compiler expects a int WinMain(...), try creating a console application and moving your code there or replace void main() with int WinMain(...), though you would have to look up the parameters

  6. #6
    Guest

    Re: Help!

    I agree with Latrans.

  7. #7
    Guest

    Re: Help!

    The Parameter is void
    so go:

    void main(void)
    {
    }

  8. #8

    Re: Help!

    Originally posted by Latrans:
    Some people should never be allowed near a compiler.
    I thoroughly disagree with Latrans. I've been working with openGL for about two years now and with C++ alot longer. You do not wake up with this information one moring. It is blood and tears at the start then it gets much easier.

    This sort of elitist attitude ****es me off. Latrans, you are a bit of a tube!

  9. #9
    Junior Member Newbie
    Join Date
    Aug 2002
    Posts
    8

    Re: Help!

    Chowe,
    Thanks for your help. But now I have a different problem. I get the error

    LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main

  10. #10
    Member Newbie
    Join Date
    Aug 2002
    Posts
    42

    Re: Help!

    I agree that it takes some time to learn to program. And even longer to learn to program well. But so many questions here are questions on how to program, not questions on OpenGL. If only people would learn to program before they learn to program with OpenGL, their life would be so much simpler. People can hurt themselves trying to run before they can walk.

Page 1 of 4 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean