Hi all,
I just installed slackware 14.0 and am now trying to compile a simple openGL cube program. I've verified I have the required OpenGL files but I receive the following output when I attempt to run 'make' in the same folder as my cpp files.
Here is the entire output:
Code:
make
g++ -Wall -o cube main.cpp imageloader.cpp -lglut
imageloader.cpp: In function 'Image* loadBMP(const char*)':
imageloader.cpp:141:2: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: /tmp/ccJVh8Br.o: undefined reference to symbol 'glNormal3f'
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: note: 'glNormal3f' is defined in DSO /usr/lib64/libGL.so.1 so try adding it to the linker command line
/usr/lib64/libGL.so.1: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [cube] Error 1
Any ideas why this is happening ? Thanks in advance!