OpenGL Performer linking issues [SOLVED]
#4
RE: OpenGL Performer linking issues [SOLVED]
(12-05-2022, 01:54 AM)jpstewart Wrote:  IRIX ld is very picky about the order in which libraries are listed.  It scans them in the order they are named on the command line and uses them to resolve any unresolved symbols from prior objects.  It doesn't carry them forward, so to speak, to subsequent objects.  (Unlike, say, GNU ld which doesn't care about order at all.)

So, to me, the glaring mistake is that your hello.o object is listed last.  None of the libraries in your command will be used to resolve symbols in hello.o.  But hello.o will be used to resolve symbols in them (of which there should be none).  So that's backwards.  Put hello.o before all the libraries so that they can be used to satisfy the symbols in hello.o.

Yep, that was the issue. So annoying, but now I can get to real OpenGL programming. Also, definitely putting library flags at the end from now on no matter what machine I program on :)

Thanks to both of you!

Octane Octane (Apollo): R12k @ 400mhz, 768mb RAM, 300GB hard drive, MXE+SE graphics
O2 O2 (Celeste): R5k @ 180mhz, 192MB RAM, 80GB hard drive, AV1 option board
(This post was last modified: 12-05-2022, 04:27 AM by lenix.)
lenix
O2

Trade Count: (0)
Posts: 12
Threads: 4
Joined: Jul 2021
Location: Florida, United States
Find Reply
12-05-2022, 04:25 AM


Messages In This Thread
OpenGL Performer linking issues [SOLVED] - by lenix - 12-04-2022, 02:55 PM
RE: OpenGL Performer linking issues - by jpstewart - 12-05-2022, 01:54 AM
RE: OpenGL Performer linking issues [SOLVED] - by lenix - 12-05-2022, 04:25 AM
RE: OpenGL Performer linking issues - by Raion - 12-05-2022, 02:28 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)