[CMake] Problems CMake linking shared libraries

Jos Theunissen jtheunissen at infologic.nl
Tue Apr 3 06:24:39 EDT 2007


Hi Manfred,

Our naming convention for so is esqc.so for a c library. We use this
convention long before Linux came.
 
What I wonder who is removing the .so?
I have set the search path with: LINK_DIRECTORIES(/usr/local/test/lib)

Jos

-----Original Message-----
From: Manfred Rebentisch [mailto:mrebentisch at comparat.de] 
Sent: dinsdag 3 april 2007 12:01
To: cmake at cmake.org
Subject: Re: [CMake] Problems CMake linking shared libraries

Am Dienstag, 3. April 2007 08:44 schrieb Jos Theunissen:
>
> When linking the executable ld cannot find the shared libraries because
the
> extensions is missing (see -lesqc)
>
> Linking CXX executable hksq
>
> /usr/lib/gcc/i586-suse-linux/4.1.2/../../../../i586-suse-linux/bin/ld:
> cannot find -lesqc
>
> collect2: ld returned 1 exit status
>
> make[2]: *** [hksq] Error 1
>
> make[1]: *** [CMakeFiles/hksq.dir/all] Error 2
>
> make: *** [all] Error 2
>
> suse10jt#fradev@/usr/local/fradev/src/atest2>
>
> Why is the extension removed?

It is normal writing "-lesqc" for "libesqc.so". Perhaps there is another 
problem? Whats about the library path?

Manfred

_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake




More information about the CMake mailing list