Thread: I got error LNK2019

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    6

    I got error LNK2019

    when I tried to do the tutorial at http://www.cprogramming.com/tutorial...l_program.html

    I got 21 errors, all of them are the same: OpenGL.obj : error LNK2019: unresolved external symbol

    I don't know what does that mean, I thought I followed all in the tutorial

    I'm using VisualC++ 2008

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    It seems that you haven't linked against the correct .lib file for opengl.
    It can be specified under project options -> linker -> input.
    However, I'm unsure what file you should link against.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    6
    thanks Elysia, I got no more error messages

    but the program didn't render a thing, it only renders the screen to the specified color at glClearColor() but I didn't see any object


    (so much for typing all that code... it made my hands tired for not copy-paste it )

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Ah, unfortunately, I'm not graphics export. I hardly know anything about 2D/3D, much less D3D and OpenGL...
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed