Syntax13
January 22nd, 2006, 06:13 PM
i was compiling this program and others just fine all day yesterday, but for some reason after i rebooted my computer this morning, gcc sudenly started being screwy. here's what it tells me (and glfw.h and library are where they're supposed to be)
$ gcc -Wall -lglfw -lGL -lGLU -lX11 -lpthread -lm -o LearnGLFW02.exe LearnGLFW02.cpp
LearnGLFW02.cpp:125:2: warning: no newline at end of file
/tmp/cc1MjnL2.o: In function `KeyCheck()':
LearnGLFW02.cpp:(.text+0xf): undefined reference to `glfwGetKey'
LearnGLFW02.cpp:(.text+0x29): undefined reference to `glfwGetKey'
LearnGLFW02.cpp:(.text+0x43): undefined reference to `glfwGetKey'
LearnGLFW02.cpp:(.text+0x5d): undefined reference to `glfwGetKey'
/tmp/cc1MjnL2.o: In function `Draw()':
LearnGLFW02.cpp:(.text+0x103): undefined reference to `glfwGetTime'
LearnGLFW02.cpp:(.text+0x116): undefined reference to `glfwGetWindowSize'
/tmp/cc1MjnL2.o: In function `main':
LearnGLFW02.cpp:(.text+0x473): undefined reference to `glfwInit'
LearnGLFW02.cpp:(.text+0x496): undefined reference to `glfwOpenWindow'
LearnGLFW02.cpp:(.text+0x4a7): undefined reference to `glfwTerminate'
LearnGLFW02.cpp:(.text+0x4bd): undefined reference to `glfwSetWindowTitle'
LearnGLFW02.cpp:(.text+0x4cd): undefined reference to `glfwEnable'
LearnGLFW02.cpp:(.text+0x4e1): undefined reference to `glfwSwapBuffers'
LearnGLFW02.cpp:(.text+0x4ee): undefined reference to `glfwGetKey'
LearnGLFW02.cpp:(.text+0x502): undefined reference to `glfwGetWindowParam'
LearnGLFW02.cpp:(.text+0x524): undefined reference to `glfwTerminate'
collect2: ld returned 1 exit status
anyone have any suggestions of what's wrong?
$ gcc -Wall -lglfw -lGL -lGLU -lX11 -lpthread -lm -o LearnGLFW02.exe LearnGLFW02.cpp
LearnGLFW02.cpp:125:2: warning: no newline at end of file
/tmp/cc1MjnL2.o: In function `KeyCheck()':
LearnGLFW02.cpp:(.text+0xf): undefined reference to `glfwGetKey'
LearnGLFW02.cpp:(.text+0x29): undefined reference to `glfwGetKey'
LearnGLFW02.cpp:(.text+0x43): undefined reference to `glfwGetKey'
LearnGLFW02.cpp:(.text+0x5d): undefined reference to `glfwGetKey'
/tmp/cc1MjnL2.o: In function `Draw()':
LearnGLFW02.cpp:(.text+0x103): undefined reference to `glfwGetTime'
LearnGLFW02.cpp:(.text+0x116): undefined reference to `glfwGetWindowSize'
/tmp/cc1MjnL2.o: In function `main':
LearnGLFW02.cpp:(.text+0x473): undefined reference to `glfwInit'
LearnGLFW02.cpp:(.text+0x496): undefined reference to `glfwOpenWindow'
LearnGLFW02.cpp:(.text+0x4a7): undefined reference to `glfwTerminate'
LearnGLFW02.cpp:(.text+0x4bd): undefined reference to `glfwSetWindowTitle'
LearnGLFW02.cpp:(.text+0x4cd): undefined reference to `glfwEnable'
LearnGLFW02.cpp:(.text+0x4e1): undefined reference to `glfwSwapBuffers'
LearnGLFW02.cpp:(.text+0x4ee): undefined reference to `glfwGetKey'
LearnGLFW02.cpp:(.text+0x502): undefined reference to `glfwGetWindowParam'
LearnGLFW02.cpp:(.text+0x524): undefined reference to `glfwTerminate'
collect2: ld returned 1 exit status
anyone have any suggestions of what's wrong?