g++/gcc STATUS_ACCESS_VIOLATION on gladLoadGLLoader((GLADloadproc) glfwGetProcAddress)
I've been writing a program that compiles with g++/gcc and temporarily switched over to Visual Studio for its debugger. I got OpenGL working perfectly with VS and then tried to compile the same code with g++/gcc and it crashed with the following stackdump:

```
Exception: STATUS_ACCESS_VIOLATION at eip=6116E7EE
eax=20057338 ebx=0063CC7C ecx=00000021 edx=61227D70 esi=00000021 edi=20057338
ebp=00000022 esp=0063CBC0 program=D:\3dshacking\BrewTools\Testing\Testingwin.exe, pid 17048, thread main
cs=0023 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame     Function  Args
```

I used gdb to find the line of the crash and it's when I call `gladLoadGLLoader((GLADloadproc) glfwGetProcAddress)`:

![gdb](https://user-images.githubusercontent.com/6555773/34180118-61f89b24-e4c2-11e7-81cd-2332cbed5542.png)

To check if it was just my code I copied the c++ example from this repo over my `main.cpp` and it gave the same result. Anyone have any ideas?