On Wed, Dec 16, 2015 at 1:15 PM, Dave Johansen <davejohansen@gmail.com> wrote:
I'm running into a linker issue when moving code that builds on RHEL 6 to Fedora or RHEL 7. Here's a simple reproducer:

Download simple.c from https://github.com/markkilgard/glut/blob/master/progs/examples/simple.c and then run:
g++ simple.c -lglut -o simple

My SWG would be that for some reason on EL 6 you're getting the symbols for free perhaps due to the transitive nature of linking dynamic libraries? 

Since all you need to add is "-lGL" and it won't hurt anything on EL 6, seems like a pretty straight forward fix.

Thanks,
Richard