[Qt-interest] error while compiling a customized project
Paul Floyd
paulf at free.fr
Mon Dec 1 15:42:30 CET 2008
Quoting ami guru <dosto.walla at gmail.com>:
> Hello forum,
>
> I have two directories "utils" and "dataobjects" under the following
> directory with each of having their own
> project files.
>
> /home/sajjad/DesignPaternQtWay/libs
>
> These path is defined in the environment variable in the Ubunutu System The
> LD_LIBRARY_PATH is defined as well.
LD_LIBRARY_PATH affects the runtime linker search path, but not the link editor
search path. I recommend that you not use it unless you can possibly avoid it.
> while compiling i am having the following error:
>
> ***********************'
> /usr/bin/ld: cannot find -lutils
> collect2: ld returned 1 exit status
> make[1]: *** [libdataobjects.so.1.0.0] Error 1
> make[1]: Leaving directory
> `/home/sajjad/QT/DesignPatternQtWay/libs/dataobjects'
> make: *** [sub-dataobjects-make_default] Error 2
>
> **********************
> It is saying that it is not finding the libutil.so
The message mentions -lutils, which would be libutuls.so
> The path has been set to /home/sajjad/DesignPaternQtWay/libs but is not
> looking into that
PATH is not used for the link editor search path either, only for executable
files.
You need to put -L link editor option before the -l option, and it should work.
A+
Paul
More information about the Qt-interest-old
mailing list