+ 1

C++ Linking Issue

I am trying to create Shader Library dll, using OpenGL functionality, This Library is depend on other library like glew.dll and glfw.dll, after finishing It when I was try to plug this library to my main app it does not work. compiler throw error Like(Exception thrown at 0x00000000 in test.exe: 0xC0000005: Access violation executing location 0x00000000.)

31st Jul 2021, 8:35 AM
Eyob
Eyob - avatar
2 Respuestas
+ 3
This looks more like an error thrown by your OS's memory manager instead of the compiler, most probably you are trying to access a NULL pointer somewhere. Just run the program in a debugger to track this down in your program.
31st Jul 2021, 8:52 AM
Arsenic
Arsenic - avatar
0
First Thankyou for answering, but The code work fine, for Eg if I copy the same code Into Shader.cpp and Shader.h It work but when I try to pack Into .dll This error show up, I am using Visual Studio 2019, Trying to learn OpenGL and The code become a mess too quickly, like camera, shader, texture and I thought why not try to write library for each of them It will be organized .......... ........... aaaannd this issue left me unorganized :( .
31st Jul 2021, 11:58 AM
Eyob
Eyob - avatar