Results 1 to 7 of 7

Thread: error LNK2019: unresolved external symbol

  1. #1
    Senior Member Regular Contributor
    Join Date
    Mar 2015
    Posts
    296

    Question error LNK2019: unresolved external symbol

    unresolved external symbol "signed char * __cdecl gltLoadTGA(char const *,int *,int *,int *,unsigned int *)" (?gltLoadTGA@@YAPACPBDPAH11PAI@Z),

    I include head files,
    include "stdafx include "gltools
    include "GL/glut
    include "GLee
    include "math3d

    in system/independences, add these lib,
    glut...oooooo.lib
    glut32
    GLee
    Opengl32
    Glu32
    glew32

    Which lib is the gltLoadTGA() function in?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2015
    Posts
    296
    and this function
    void __cdecl m3dFindNormal(float * const,float const * const,float const * const,float const * const)" (?m3dFindNormal@@YAXQAMQBM11@Z),
    where is it?

  3. #3
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,675
    If you wrote this code, then you must have some idea of where those functions came from. And if you didn't write it, and are just copying it from some website or somesuch, you should read the source documentation to find out where it does come from.

  4. #4
    Senior Member Regular Contributor
    Join Date
    Mar 2015
    Posts
    296
    So it is,
    this is from an example of gl book. i copy it from an article without read the book. search and find it lack of the function in lib.
    i shall try and how about other pic format? if i don;t use tga format.
    thanks,

  5. #5
    Senior Member OpenGL Lord
    Join Date
    Mar 2015
    Posts
    6,675
    A "gl book"? That's not exactly narrowing it down; there are literally dozens of these.

    And if you're just copying from an article without even knowing what the book that article itself was copying from... how do you expect your code to actually work?

    Lastly, copying random code you found on the Internet is not an effective means to learn anything.

  6. #6
    Senior Member Regular Contributor
    Join Date
    Mar 2015
    Posts
    296
    welll, I shall check its name. then tell you and some results

  7. #7
    Senior Member OpenGL Guru
    Join Date
    Oct 2004
    Posts
    4,655
    Quote Originally Posted by reader1 View Post
    unresolved external symbol "signed char * __cdecl gltLoadTGA(char const *,int *,int *,int *,unsigned int *)" (?gltLoadTGA@@YAPACPBDPAH11PAI@Z)
    Just websearch it:

    * gltLoadTGA

    First hit from the hit list:

    * Texture Mapping (opengl.org)

Similar Threads

  1. error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
    By duck bong in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-19-2006, 08:26 AM
  2. error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
    By locomo in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 12-01-2002, 06:01 AM
  3. error LNK2001: unresolved external symbol
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 10-17-2002, 11:12 PM
  4. Replies: 1
    Last Post: 12-04-2001, 12:42 PM
  5. Error LNK 2001: unresolved external symbol
    By in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 09-19-2001, 06:36 PM

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