467,875 Members | 1,505 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 467,875 developers. It's quick & easy.

Creating DLL but end up 23 "error LNK2019"

Expand|Select|Wrap|Line Numbers
  1. Error    10    error LNK2019: unresolved external symbol __imp__glBindTexture@8 referenced in function "public: void __thiscall GLTexture::Use(void)" (?Use@GLTexture@@QAEXXZ)    GLTexture.obj    
  2. Error    11    error LNK2019: unresolved external symbol __imp__glEnable@4 referenced in function "public: void __thiscall GLTexture::Use(void)" (?Use@GLTexture@@QAEXXZ)    GLTexture.obj    
  3. Error    12    error LNK2001: unresolved external symbol __imp__glEnable@4    Model_3DS.obj    
  4. Error    13    error LNK2019: unresolved external symbol _gluBuild2DMipmaps@28 referenced in function "public: void __thiscall GLTexture::LoadBMP(char *)" (?LoadBMP@GLTexture@@QAEXPAD@Z)    GLTexture.obj    
  5. Error    14    error LNK2019: unresolved external symbol __imp__glTexParameteri@12 referenced in function "public: void __thiscall GLTexture::LoadBMP(char *)" (?LoadBMP@GLTexture@@QAEXPAD@Z)    GLTexture.obj    
  6. Error    15    error LNK2019: unresolved external symbol __imp__glGenTextures@8 referenced in function "public: void __thiscall GLTexture::LoadBMP(char *)" (?LoadBMP@GLTexture@@QAEXPAD@Z)    GLTexture.obj    
  7. Error    16    error LNK2019: unresolved external symbol _auxDIBImageLoadA@4 referenced in function "public: void __thiscall GLTexture::LoadBMP(char *)" (?LoadBMP@GLTexture@@QAEXPAD@Z)    GLTexture.obj    
  8. Error    17    error LNK2019: unresolved external symbol __imp__glPixelStorei@8 referenced in function "public: void __thiscall GLTexture::BuildColorTexture(unsigned char,unsigned char,unsigned char)" (?BuildColorTexture@GLTexture@@QAEXEEE@Z)    GLTexture.obj    
  9. Error    18    error LNK2019: unresolved external symbol __imp__glEnd@0 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  10. Error    19    error LNK2019: unresolved external symbol __imp__glVertex3f@12 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  11. Error    20    error LNK2019: unresolved external symbol __imp__glBegin@4 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  12. Error    21    error LNK2019: unresolved external symbol __imp__glColor3f@12 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  13. Error    22    error LNK2019: unresolved external symbol __imp__glDisable@4 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  14. Error    23    error LNK2019: unresolved external symbol __imp__glPopMatrix@0 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  15. Error    24    error LNK2019: unresolved external symbol __imp__glDrawElements@16 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  16. Error    25    error LNK2019: unresolved external symbol __imp__glVertexPointer@16 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  17. Error    26    error LNK2019: unresolved external symbol __imp__glNormalPointer@12 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  18. Error    27    error LNK2019: unresolved external symbol __imp__glTexCoordPointer@16 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  19. Error    28    error LNK2019: unresolved external symbol __imp__glEnableClientState@4 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  20. Error    29    error LNK2019: unresolved external symbol __imp__glScalef@12 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  21. Error    30    error LNK2019: unresolved external symbol __imp__glRotatef@16 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  22. Error    31    error LNK2019: unresolved external symbol __imp__glTranslatef@12 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  23. Error    32    error LNK2019: unresolved external symbol __imp__glPushMatrix@0 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj        

I am quite new to C++ (have few years of java and C# experience) but right now i need to use C++ and this thing (VS2005) keep complaining over and over :S
Aug 20 '07 #1
  • viewed: 8619
Share:
4 Replies
Meetee
Expert Mod 512MB
Expand|Select|Wrap|Line Numbers
  1. Error    10    error LNK2019: unresolved external symbol __imp__glBindTexture@8 referenced in function "public: void __thiscall GLTexture::Use(void)" (?Use@GLTexture@@QAEXXZ)    GLTexture.obj    
  2. Error    11    error LNK2019: unresolved external symbol __imp__glEnable@4 referenced in function "public: void __thiscall GLTexture::Use(void)" (?Use@GLTexture@@QAEXXZ)    GLTexture.obj    
  3. Error    12    error LNK2001: unresolved external symbol __imp__glEnable@4    Model_3DS.obj    
  4. Error    13    error LNK2019: unresolved external symbol _gluBuild2DMipmaps@28 referenced in function "public: void __thiscall GLTexture::LoadBMP(char *)" (?LoadBMP@GLTexture@@QAEXPAD@Z)    GLTexture.obj    
  5. Error    14    error LNK2019: unresolved external symbol __imp__glTexParameteri@12 referenced in function "public: void __thiscall GLTexture::LoadBMP(char *)" (?LoadBMP@GLTexture@@QAEXPAD@Z)    GLTexture.obj    
  6. Error    15    error LNK2019: unresolved external symbol __imp__glGenTextures@8 referenced in function "public: void __thiscall GLTexture::LoadBMP(char *)" (?LoadBMP@GLTexture@@QAEXPAD@Z)    GLTexture.obj    
  7. Error    16    error LNK2019: unresolved external symbol _auxDIBImageLoadA@4 referenced in function "public: void __thiscall GLTexture::LoadBMP(char *)" (?LoadBMP@GLTexture@@QAEXPAD@Z)    GLTexture.obj    
  8. Error    17    error LNK2019: unresolved external symbol __imp__glPixelStorei@8 referenced in function "public: void __thiscall GLTexture::BuildColorTexture(unsigned char,unsigned char,unsigned char)" (?BuildColorTexture@GLTexture@@QAEXEEE@Z)    GLTexture.obj    
  9. Error    18    error LNK2019: unresolved external symbol __imp__glEnd@0 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  10. Error    19    error LNK2019: unresolved external symbol __imp__glVertex3f@12 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  11. Error    20    error LNK2019: unresolved external symbol __imp__glBegin@4 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  12. Error    21    error LNK2019: unresolved external symbol __imp__glColor3f@12 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  13. Error    22    error LNK2019: unresolved external symbol __imp__glDisable@4 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  14. Error    23    error LNK2019: unresolved external symbol __imp__glPopMatrix@0 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  15. Error    24    error LNK2019: unresolved external symbol __imp__glDrawElements@16 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  16. Error    25    error LNK2019: unresolved external symbol __imp__glVertexPointer@16 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  17. Error    26    error LNK2019: unresolved external symbol __imp__glNormalPointer@12 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  18. Error    27    error LNK2019: unresolved external symbol __imp__glTexCoordPointer@16 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  19. Error    28    error LNK2019: unresolved external symbol __imp__glEnableClientState@4 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  20. Error    29    error LNK2019: unresolved external symbol __imp__glScalef@12 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  21. Error    30    error LNK2019: unresolved external symbol __imp__glRotatef@16 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  22. Error    31    error LNK2019: unresolved external symbol __imp__glTranslatef@12 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj    
  23. Error    32    error LNK2019: unresolved external symbol __imp__glPushMatrix@0 referenced in function "public: void __thiscall Model_3DS::Draw(void)" (?Draw@Model_3DS@@QAEXXZ)    Model_3DS.obj        

I am quite new to C++ (have few years of java and C# experience) but right now i need to use C++ and this thing (VS2005) keep complaining over and over :S

This error comes when you don't include any library or header file which is required for the functions to use. By seeing your errors I can only say that some library needed for Model_3DS is missing in your code.

Search on google with error LNK2019 and you will find the reasons for the error!

Regards
Aug 20 '07 #2
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=506

this is the site i got my source from, and i have trouble debugging this thing
Aug 20 '07 #3
weaknessforcats
Expert Mod 8TB
A LNK2019 means the linker can't find the functions you are calling. This means a) you failed to add the source files to your project, or b) failed to add the library with the compiled code to your project linker input as an external dependency.
Aug 20 '07 #4
http://www.gamedev.net/community/forums/topic.asp?topic_id=310386

oh... nevermind, i confused that #include can do the add library automatically (damn those C++ tutorial doesn't say things clearly)


anyway thanks for all people replied
Aug 21 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by jack112 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.