[CMake] CMAKE_DL_LIBS

J. Caleb Wherry calebwherry at gmail.com
Tue Mar 1 09:39:05 EST 2016


Most likely solution: missing the "-ldl" link lib which should solve
your missing symbol issues.

The DSO error is most likely caused by the above. However, there could be a
problem with your linking order. I'd have to see the CMake file to be sure.

Caleb

On Tuesday, March 1, 2016, Aaron Boxer <boxerab at gmail.com> wrote:

>
>
> On Tue, Mar 1, 2016 at 9:06 AM, Aaron Boxer <boxerab at gmail.com
> <javascript:_e(%7B%7D,'cvml','boxerab at gmail.com');>> wrote:
>
>> Hello!
>> I have a CMAKE project that creates an executable that links with a
>> static lib
>> from a second CMAKE project. The static lib requires the dlopen and
>> dlclose
>> symbols.
>>
>> So, when I link the first project, I add ${CMAKE_DL_LIBS} to the CMake
>> file.
>>
>> However, I still get an error about "undefined reference to symbol
>> "dlclose...."
>>
>
> The error states: "missing DSO from command line"
>
> Also, the second CMAKE project also contains executables that link with
> the static
> library, and they link with no problem.
>
>
>
>
>

-- 
Sent from my iPhone 4s
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160301/3499404f/attachment.html>


More information about the CMake mailing list