alexpgp: (Default)
[personal profile] alexpgp
I don't know why I can't leave some things like this linking error alone when there are other things that need to be done around here. Maybe it's because they eat away at me. Maybe it's the basic geek need to conquer the machine. I don't know.

But I do know that there is often more than one way of getting to a goal. In this case, I changed the command line offered by `make', to
wit:

gcc -g -O2 -lxxxxx -o yyy yyy.o zzz.o

to the following:

gcc -g -O2 -o yyy yyy.o zzz.o /usr/lib/libxxxxx.a

Basically, the first line says "create executable yyy, using the object files yyy.o and zzz.o, and search libxxxxx.a for any unresolved references." The second line says the same thing, but lists the library along with the object files.

The sucker links.

FWIW, this involves using `gcc version 2.95.3 19991030 (prerelease)', which is pretty new, but apparently has a slight problem [in my opinion] with the `-l' flag.

Okay, now we can really go off and do around-the-house type stuff.

Cheers...

Profile

alexpgp: (Default)
alexpgp

January 2018

S M T W T F S
  1 2 3456
7 8910111213
14 15 16 17181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 24th, 2025 03:07 am
Powered by Dreamwidth Studios