building GD/gcc linking..

Kevin D. Clark clark_k at pannaway.com
Thu Jul 21 13:39:32 EDT 2005


"Grant M." writes:

>     gcc ./test.c -o test -L/usr/lib -l libjpeg

Try this instead:

    gcc ./test.c -o test -ljpeg

BTW, the -L/usr/lib is superfluous in this case.

Regards,

--kevin (former bugzilla administrator, one of my favorite side-jobs)

-- 
"I'm on the bike and I go into a rage -- I shriek for about five
 seconds, I shake like mad, my eyes kind of bulge, and I'd never quit.
 That's heart.  That's soul.  That's guts"
    -- Lance Armstrong



More information about the Discuss mailing list