Hello,
I tried many times to setup modern opengl but every time I failed.
Today I tried it again… and failed again…
My first Attempt was with SDL, Glew, GLM and Visual Studio 2012 C++.
First of all I had Problems with iostream in Visual Studio 2012 so I changed it to 2010 and it worked…
Then I had problems with SDL and after editing plattforms.h where he had problems with winapifamily it worked too
But then he told me Reference to an unresolved external symbol and I have no idea what I am doing wrong
Then I tried it on CodeBlocks with GLFW and Glew and I am Getting the Same Error
This is my code on CodeBlocks:
#define GLEW_NO_GLU
#define GLFW_NO_GLU
#define GLFW_EXPOSE_NATIVE_WIN32
#define GLFW_EXPOSE_NATIVE_WGL
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <GLFW/glfw3native.h>
int main() {
glfwInit();
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR,3);
glfwWindowHint(GLFW_OPENGL_PROFILE,GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT,GL_TRUE);
GLFWwindow* myWindow = glfwCreateWindow(800,600,"Apocalypse Engine",NULL,NULL);
while(true)
{
glfwSwapBuffers(myWindow);
}
}
My Folder hierarchy:
- Apocalypse Engine:
- bin
- obj
- main.cpp and some codeblocks stuff
- include:
GL…
GLFW… - lib:
- glew32.lib
- glew32s.lib
- glfw3.lib
- glfw3.lib
- glfw3dll.lib
- OpenGL32.Lib (from the Folder Window Kits I have taken It)
Compiler: Visual Studio 2010
Linker settings:
- lib\glew32.lib
- lib\glew32s.lib
- lib\glfw3.lib
- lib\glfw3.lib
- lib\glfw3dll.lib
- lib\OpenGL32.Lib
- opengl32.lib (yea i thinked that would be the problems so I added this but still not working :-()
Search Directories-Compiler:
- include
Search Directories-Linker:
- lib
I have no idea what I am doing wrong but It would be awesome if you can help me, because I am trying this since a year(with interruptions of course ;))
(I already programmed with old OpenGL but I got it installed on other PC and I dont have access to that pc and I want modern OpenGL)
Hopefully Waiting for Response
QuesterDesura
PS: 1. I am native German I hope you can understood what I wrote
2. It is Console Application