मैंने माइक्रोसॉफ्ट विजुअल स्टूडियो 2013 में जीएलएफडब्लू और जीएलडब्ल्यू पुस्तकालयों का उपयोग करके ओपनजीएल में एक कार्यक्रम लिखा है। मुझे त्रुटियां मिल रही हैं - सी ++, विजुअल स्टूडियो -2013

एक्सटेंशन समर्थन की जांच के लिए ओपनजीएल प्रोग्राम

#include<iostream>
#include<cstdlib>
#include<glew.h>
#include<glfw3.h>
#define GLEW_STATIC
using namespace std;

int main(int argc, char* argv[]){
GLFWwindow *window;
if (!glfwInit()) exit(EXIT_FAILURE);    //Exit if not initialized
int w = 1024, h = 600;
window = glfwCreateWindow(w, h, "glfw", NULL, NULL); //Create a window
if (!window){
glfwTerminate();
exit(EXIT_FAILURE);
}
glewExperimental = true;        //Supports modern OpenGL
GLenum glewError = glewInit(); //Initialize GLEW
if (glewError != GLEW_OK){
cout << "GLEW Error: " << glewGetErrorString(glewError)<<endl;
}
if (!GLEW_VERSION_2_1){
cout << "Glew not supported" << endl;
return false;
}
const GLubyte *p = glGetString(GL_VERSION);  //Check GL version
cout << "Graphics Driver: " << p << endl;
const GLubyte *q = glGetString(GL_SHADING_LANGUAGE_VERSION);
cout << "SHader Version: " << q << endl;
if (GLEW_ARB_vertex_array_object){
cout << "genVertexArrays supported" << endl;
}
return 0;
}

>

"OpenGL.exe" (Win32): Loaded "C:Program Files (x86)NVIDIA Corporationcoprocmanagerdetoured.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:Program Files (x86)NVIDIA CorporationcoprocmanagerNvd3d9wrap.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64setupapi.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64cfgmgr32.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:Program Files (x86)NVIDIA Corporationcoprocmanagernvdxgiwrap.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64uxtheme.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64combase.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64winmm.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64winmmbase.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64devobj.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64dwmapi.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:Program Files (x86)RazerRazer CortexK_FPS.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64shlwapi.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64dbghelp.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:Program Files (x86)RazerRazer CortexD3DX9_43.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:Program Files (x86)RazerRazer Cortexd3dx10_43.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:Program Files (x86)RazerRazer Cortexd3dx11_43.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:Program Files (x86)RazerRazer CortexD3DX8Wrapper.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:Program Files (x86)RazerRazer CortexD3DCompiler_43.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsWinSxSx86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.9600.17227_none_dad9452e5bcb7986GdiPlus.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64psapi.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64comdlg32.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:Program Files (x86)RazerRazer CortexEasyHook32.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64dsound.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64ole32.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64oleaut32.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64comctl32.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64shell32.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64powrprof.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64SHCore.dll". Cannot find or open the PDB file.
DLL_PROCESS_ATTACH:[C:Usersak1132documentsvisual studio 2013ProjectsOpenGLDebugOpenGL.exe]CheckHookPath start
C:Usersak1132documentsvisual studio 2013ProjectsOpenGLDebugOpenGL.exedota 2 betadota.exeH:GamesNaruto Shippuden Ultimate Ninja Storm RevolutionH:GamesBorderlands The Pre-SequelBinariesWin32H:GamesMiddle Earth Shadow of Mordorx64CheckHookPath end
CheckHookFullPath start
CheckFullPathHookMatch start
CheckFullPathHookMatch end
CheckHookFullPath end
**This app is not contained in hook (full)path, So we don"t handle it**
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64ig4icd32.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64version.dll". Cannot find or open the PDB file.
"OpenGL.exe" (Win32): Unloaded "C:WindowsSysWOW64version.dll"
"OpenGL.exe" (Win32): Loaded "C:WindowsSysWOW64kernel.appcore.dll". Cannot find or open the PDB file.
DLL_PROCESS_DETACH:[C:Usersak1132documentsvisual studio 2013ProjectsOpenGLDebugOpenGL.exe]The program "[5964] OpenGL.exe" has exited with code 0 (0x0).

उत्तर:

जवाब के लिए 0 № 1

I can think of only one reason why you are यह त्रुटियां प्राप्त करना हो सकता है कि आप अपने प्रोजेक्ट को मैक पर समानांतर में चलाने की कोशिश कर रहे हैं, और समांतर असतत और एकीकृत वीडियो कार्ड के बीच स्विचिंग का समर्थन नहीं करते हैं (या शायद, आप सेटिंग्स में अलग-अलग कार्ड का उपयोग करने से मना करते हैं)। तो, विजुअल स्टूडियो कोशिश कर रहा है एकीकृत वीडियो कार्ड पर इस कोड को निष्पादित करें, लेकिन ओपनजीएल को असतत की आवश्यकता है।


संबंधित सवाल
सबसे लोकप्रिय