Resolving the error caused by GNU Scientific Library in Windows

It happens to be many people are having the same problem with me when working in Windows version of GSL. So, it's not difficult for me to find a way to resolve this problem. The answer is very simple, just add these two lines into your code:
#define WIN32
#define GSL_DLL
And you can run your GSL based software smoothly. It works for me, hope it will work for you too.
Good luck!