Does the function 'glfwInit()' exist two lib?

kitsam wrote on Tuesday, September 23, 2008:

Dear all,

I’m beginner for GLFW. I’ve download the static library for win32 platform in glfw-2.6.bin.WIN32.zip. And I got two static library glfw.lib and glfwdll.lib to my project folder.

I tried to write a small C program in Visual C++ 2005 to test it. However I encountered a compilation error : LNK2019 _glfwInit cannot be…

Does the function ‘glfwInit()’ exist in glfw.lib/glfwdll.lib? I pretty sure I set these two static library correctly.

CODE:
#include <stdio.h>
#include "GL\glfw.h" // For GLFW, OpenGL and GLU

#pragma comment(lib,"OpenGL32.lib")
#pragma comment(lib,"GLu32.lib")
#pragma comment(lib,"GLaux.lib")

#pragma comment(lib,"glfw.lib")
#pragma comment(lib,"glfwdll.lib")

int main() {
glfwInit();
return 0;
}

What do I miss for the program?

Thank you.

Best Regards,
Sam

elmindreda wrote on Tuesday, September 23, 2008:

glfw.lib is the static library for GLFW. glfwdll.lib is the link library for glfw.dll. Use either glfw.lib, or glfwdll.lib and glfw.dll.