🔒 Locked
Errors, library problem?
Advertisement
Original Post
Howdy yall, I get the following errors when trying to compile my program with textures. ------------------------------------------------------------- Linking... gltexture.obj : error LNK2001: unresolved external symbol __imp__glPopMatrix@0 gltexture.obj : error LNK2001: unresolved external symbol __imp__glEnd@0 gltexture.obj : error LNK2001: unresolved external symbol __imp__glVertex2d@16 gltexture.obj : error LNK2001: unresolved external symbol __imp__glTexCoord2d@16 gltexture.obj : error LNK2001: unresolved external symbol __imp__glBegin@4 gltexture.obj : error LNK2001: unresolved external symbol __imp__glRotatef@16 gltexture.obj : error LNK2001: unresolved external symbol __imp__glPushMatrix@0 gltexture.obj : error LNK2001: unresolved external symbol __imp__glBindTexture@8 gltexture.obj : error LNK2001: unresolved external symbol __imp__glEnable@4 gltexture.obj : error LNK2001: unresolved external symbol __imp__glClear@4 gltexture.obj : error LNK2001: unresolved external symbol __imp__glClearColor@16 gltexture.obj : error LNK2001: unresolved external symbol _gluBuild2DMipmaps@28 gltexture.obj : error LNK2001: unresolved external symbol __imp__glTexParameterf@12 gltexture.obj : error LNK2001: unresolved external symbol __imp__glTexEnvf@12 gltexture.obj : error LNK2001: unresolved external symbol __imp__glGenTextures@8 gltexture.obj : error LNK2001: unresolved external symbol __imp__glDeleteTextures@8 gltexture.obj : error LNK2001: unresolved external symbol __imp__wglMakeCurrent@8 gltexture.obj : error LNK2001: unresolved external symbol __imp__wglCreateContext@4 gltexture.obj : error LNK2001: unresolved external symbol __imp__wglDeleteContext@4 LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/gltexture.exe : fatal error LNK1120: 20 unresolved externals Error executing link.exe. -------------------------------------------------------------- I think i might need to include a specific library when using textures, but i'm not sure which one. If anyone recognizes these errors I would greatly appreciate some help. This was compiled with VC++.
Thanks for the help yall, now i get only two errors. It may be because its a console app instead of a win32 app like Enigma said, however, i'm new to this and have no idea how to switch between the two?
my errors are...
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/gltexture.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
my errors are...
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/gltexture.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
Do you have lighting set up properly? What about your texture coordinates?
Well, I downloaded this example to examine its source, and now i'm trying to recreate it. The texture came with the source. The only problem is that the workspace settings arent set, and i dont know what i need to set to make it work. The coordinates should be fine, the image rotates around the origin. It's just the image is all white and no texture lol.
I'll post some source, or send it to anyone if it would help, but i think the source isnt the problem.
I'll post some source, or send it to anyone if it would help, but i think the source isnt the problem.
Ok, it's solved...Apparently the .raw texture has to be in the debug folder for it to work. I had it in my project folder, but it didn't read it there. Is there a reason it needs to be in debug besides the fact that it only works in there?
EDIT - nevermind i'm mixing up my project folders and workspace folders. I still havent grasped that concept.
Anyways, thanks for your help yall, i appreciate it. This board is very handy.
EDIT - nevermind i'm mixing up my project folders and workspace folders. I still havent grasped that concept.
Anyways, thanks for your help yall, i appreciate it. This board is very handy.
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement