Forum > Linux

Error while linking

(1/1)

Theofilus:
When I compile a simple project I get the error

/usr//bin/ld: cannot find -lgtk
Project1.lpr(15) Error: Error while linking

I didn't see this in the FAQ. What could be wrong?

Marc:
See FAQ:
 I receive an error during the linking that states /usr/bin/ld can't find -l<some lib>

Anonymous:
I get the same error, and can find no corresponding package to install. gdk seems to be part of the package gtk, and I have installed this, as well at its -devel counterpart. Can someone please help?

Anonymous:
Sorry, I misread the original message. The error which I get is "cannot find -lgdk".

Apologies for mistake.

Eric

Anonymous:

--- Quote from: "Anonymous" ---Sorry, I misread the original message. The error which I get is "cannot find -lgdk".

Apologies for mistake.

Eric
--- End quote ---
Guest,

I've now found the solution. I had to add some library paths in the 'Compiler options' dialog. Mine now reads /lib/;/opt/gnome/lib/

Eric

Navigation

[0] Message Index

Go to full version