Attempting to start with OpenGL. Lots of failure
Ok, I think I do have those but I'll go redownload to be on the safe side. It just occurred to me that I needed to do that so I checked and added glew32.lib to my additional dependencies and then jumped when I saw it freak out at me.
To be perfectly honest, I have no idea wth I'm doing anymore or even if I'm using SDL at all...
I'm not seeing any such .lib file in my SDL folders. I only have a x64 and x86 version of SDL, SDLmain and SDL.dll :/
Ok, so you have a SDL.lib then, try to use that...
Ok, I think I do have those but I'll go redownload to be on the safe side. It just occurred to me that I needed to do that so I checked and added glew32.lib to my additional dependencies and then jumped when I saw it freak out at me.
Ok so you added glew32.lib to additional dependencies. Thats good.
Still got error messages?
I think I might have fixed the SDL problem... might...
I have glew32.lib, no glew.lib... so I've added that to additional dependencies. I also have glew32mx, glew32mxs and glew32s to choose from...
1>------ Build started: Project: OpenGL, Configuration: Debug Win32 ------
1> Main.cpp
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>GLFW.lib(enable.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(enable.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(glext.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(glext.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(init.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(init.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(input.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(input.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(win32_enable.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(win32_enable.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(win32_fullscreen.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(win32_fullscreen.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(win32_glext.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(win32_glext.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(win32_init.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(win32_init.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(win32_time.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(win32_time.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(win32_window.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(win32_window.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(window.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(window.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>
1>mt.exe : general error c101008a: Failed to save the updated manifest to the file "Debug\OpenGL.exe.embed.manifest". The parameter is incorrect.
1>
I have glew32.lib, no glew.lib... so I've added that to additional dependencies. I also have glew32mx, glew32mxs and glew32s to choose from...
1>------ Build started: Project: OpenGL, Configuration: Debug Win32 ------
1> Main.cpp
1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library
1>GLFW.lib(enable.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(enable.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(glext.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(glext.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(init.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(init.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(input.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(input.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(win32_enable.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(win32_enable.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(win32_fullscreen.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(win32_fullscreen.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(win32_glext.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(win32_glext.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(win32_init.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(win32_init.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(win32_time.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(win32_time.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(win32_window.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(win32_window.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>GLFW.lib(window.obj) : warning LNK4099: PDB 'vc100.pdb' was not found with 'GLFW.lib(window.obj)' or at 'F:\My Documents\Coding\C++\OpenGL\Debug\vc100.pdb'; linking object as if no debug info
1>
1>mt.exe : general error c101008a: Failed to save the updated manifest to the file "Debug\OpenGL.exe.embed.manifest". The parameter is incorrect.
1>
You are not using SDL in your code so I suggest you remove SDL.lib from additional dependencies for now just to make sure it doesn't generate any warnings.
Looking at those warnings here is what I suggest:
Replace glfw.lib with glfwdll.lib in additional dependencies.
Looking at those warnings here is what I suggest:
Replace glfw.lib with glfwdll.lib in additional dependencies.
BTW, thank you so much for helping me with this. This has been a source of stress for lover a month.
Ok... so now we're at...
1>Main.obj : error LNK2019: unresolved external symbol _glfwGetWindowParam referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwGetKey referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwSwapBuffers referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwEnable referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwSetWindowTitle referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwTerminate referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwOpenWindow referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwOpenWindowHint referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwInit referenced in function _WinMain@16
1>F:\My Documents\Coding\C++\OpenGL\Debug\OpenGL.exe : fatal error LNK1120: 9 unresolved externals
Ok... so now we're at...
1>Main.obj : error LNK2019: unresolved external symbol _glfwGetWindowParam referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwGetKey referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwSwapBuffers referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwEnable referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwSetWindowTitle referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwTerminate referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwOpenWindow referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwOpenWindowHint referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwInit referenced in function _WinMain@16
1>F:\My Documents\Coding\C++\OpenGL\Debug\OpenGL.exe : fatal error LNK1120: 9 unresolved externals
To be perfectly honest, I have no idea wth I'm doing anymore or even if I'm using SDL at all...
[/quote]
Its usually not as confusing as this. The thing is that your code uses three different libraries, gl, glew and glfw, so we have to install, configure and link all those.
It is perfectly possible to wite a open GL demo using only the gl library, but the glew and glfw libraries can come in handy so I suggest we go whole hog and set them all up.
If nothing else it should be good practice for you
BTW, thank you so much for helping me with this. This has been a source of stress for lover a month.
Ok... so now we're at...
1>Main.obj : error LNK2019: unresolved external symbol _glfwGetWindowParam referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwGetKey referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwSwapBuffers referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwEnable referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwSetWindowTitle referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwTerminate referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwOpenWindow referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwOpenWindowHint referenced in function _WinMain@16
1>Main.obj : error LNK2019: unresolved external symbol _glfwInit referenced in function _WinMain@16
1>F:\My Documents\Coding\C++\OpenGL\Debug\OpenGL.exe : fatal error LNK1120: 9 unresolved externals
Hmm, we are close now. For some reason the linker is unable to resolve the functions from the glfw library.
Did you replace glfw.lib with glfwdll.lib in additional dependencies?
I searched around a bit and I saw some guys suggesting that you add this line
#define GLFW_DLL
just above the line
#include <glfw.h>
#define GLFW_DLL
just above the line
#include <glfw.h>
[color=#282828][font=helvetica, arial, verdana, tahoma, sans-serif]BTW, thank you so much for helping me with this
[/font]
[/quote]
No problem man
So I get the following:
1>mt.exe : general error c101008a: Failed to save the updated manifest to the file "Debug\OpenGL.exe.embed.manifest". The parameter is incorrect.
then if I build it again it succeeds, but when I run it, it says I'm missing the glfw.dll O.o
I just checked my folders... I have it...
1>mt.exe : general error c101008a: Failed to save the updated manifest to the file "Debug\OpenGL.exe.embed.manifest". The parameter is incorrect.
then if I build it again it succeeds, but when I run it, it says I'm missing the glfw.dll O.o
I just checked my folders... I have it...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement