Re: Linker issue when moving from RHEL 6 to Fedora/RHEL7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 16, 2015 at 1:15 PM, Dave Johansen <davejohansen@xxxxxxxxx> 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
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux