472,802 Members | 1,415 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,802 software developers and data experts.

Creating DLL but end up 23 "error LNK2019"

5
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
4 8968
Meetee
931 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
jk2l
5
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
9,208 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
jk2l
5
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

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

Similar topics

4
by: John Phelan | last post by:
I have created a front-end application and back-end database. I have code that automatically links the front-end application to the back-end database for whenever I provide a patch or upgrade....
4
by: John Phelan | last post by:
Continue to get error message. Here is an update of my problem and everything that I have done to correct it. I have created a front-end application and back-end database. I have code that...
1
by: Dgates | last post by:
This request might belong in a "SQL"-related newsgroup, but it's such a pain using Agent to subscribe to a new group (and download its 50,000 messages!) just to ask one question. So, since it...
3
by: Vidit | last post by:
Hi I keep getting the error "Error Creating Windows Handle" in my application and different places in the code. This occurs only to certain users. Its very random and cannot be reproduced in...
0
by: ksayal | last post by:
Hi, I'm creating a project. Whenever I try to add a user control or add an aspx page it gives me the following error. When I remove the inherits="" thing, it shows up the page.... What would be...
3
by: DontB3 | last post by:
Hi, I'm new in this forum, and i hope someone can help. I'm creating an automatic application that transfer a database from Access -> DBF -> Oracle. When My App try to execute Insert SQL...
7
by: JustBeSimple | last post by:
Hi Everyone, I'm having a problem compiling useing the VS2005 .NET I need help to resolve those error, I try to create a new project it doesn't help any suggestion? I got the following errors:...
3
by: sachinv1821 | last post by:
hi , i am Getting this Error fatal error C1189: #error : "eh.h is only for C++!" my Problem is i am Having C++ librabry and Appropriate .h file i want to Access Them is .c File Files..... to Be...
10
by: Roger | last post by:
ms-access97 & sql server2005 two tables tblItem tblItemFeature form frmItem contains subform frmItemFeature each form is based on their respective table creating new record and filling in...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.