View Full Version : Eclipse c++
kielyk
October 14th, 2014, 04:28 PM
Every time I try to build Hello World I'm getting these errors. Building target: HelloWorldInvoking: Cross G++ Linker
g++ -o "HelloWorld" ./src/HelloWorld.o -lgl -lglu -lglut
/usr/bin/ld: cannot find -lgl
/usr/bin/ld: cannot find -lglu
collect2: error: ld returned 1 exit status
make: *** [HelloWorld] Error 1
Any help would be really appreciated.
Thanks.
sandyd
October 14th, 2014, 05:58 PM
Every time I try to build Hello World I'm getting these errors. Building target: HelloWorldInvoking: Cross G++ Linker
g++ -o "HelloWorld" ./src/HelloWorld.o -lgl -lglu -lglut
/usr/bin/ld: cannot find -lgl
/usr/bin/ld: cannot find -lglu
collect2: error: ld returned 1 exit status
make: *** [HelloWorld] Error 1
Any help would be really appreciated.
Thanks.
You are missing the libgl and libglu development libraries
Running
sudo apt-get install libgl-dev libglu-dev
should install them.
kielyk
October 14th, 2014, 06:33 PM
Thank's for the reply but unfortunately that's not the problem.
Here's the output.
libglu1-mesa-dev is already the newest version.
libgl1-mesa-dev is already the newest version.
sandyd
October 17th, 2014, 01:21 PM
Thank's for the reply but unfortunately that's not the problem.
Here's the output.
libglu1-mesa-dev is already the newest version.
libgl1-mesa-dev is already the newest version.
Whats the output of
ls /usr/lib/libGL.so
spjackson
October 17th, 2014, 03:39 PM
g++ -o "HelloWorld" ./src/HelloWorld.o -lgl -lglu -lglut
I think that should be
g++ -o "HelloWorld" ./src/HelloWorld.o -lGL -lGLU -lglut
slickymaster
October 17th, 2014, 03:40 PM
Moved to the Programming Talk sub-forum
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.