#1 Members - Reputation: 381
Posted 08 May 2012 - 12:03 AM
"C spilled his beer all over C++'s shirt. Outraged, C++ shouted, "Good god, man! Have you no class?"
"Your mother is so fat that the recursive function that was used to calculate her mass created a stack overflow"
#2 Members - Reputation: 183
Posted 08 May 2012 - 12:21 AM
Hello, i have been reading up on some opengl and glut and desided to use it. however i cant get glut to work. i have tryed online toutorials and videos and none work. i am using ubuntu 11.10 and the Code::Blocks ide. i keep getting the errors saying undefined referance to all my glut calls and i am starting to get pissed...Please help me!!!
The original GLUT is so old that some of its revival forks are abandoned. Freeglut might me more of interest to you.
#3 Crossbones+ - Reputation: 1243
Posted 08 May 2012 - 06:38 AM
#4 Members - Reputation: 381
Posted 09 May 2012 - 11:48 PM
"C spilled his beer all over C++'s shirt. Outraged, C++ shouted, "Good god, man! Have you no class?"
"Your mother is so fat that the recursive function that was used to calculate her mass created a stack overflow"
#5 Crossbones+ - Reputation: 1243
Posted 10 May 2012 - 02:15 AM
In GCC you specify additional include libraries on the command line like:
gcc example.o -lglutThe -l flag is used for additional libraries followed immediately by the library name, but how this is done comes down more to the tool you are using to compile and link with then anything else.
MSBuild for example has an option in it's project file that specifies which additional libraries should be used when linking, so do most other build tools. Google your build tools name and linking with additional libraries and you should find enough information on the web to get you started.
Edited by NightCreature83, 10 May 2012 - 02:16 AM.






