Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libdl.so missing DSO from command line (undefined reference) #34

Open
spiketg opened this issue Jul 22, 2019 · 0 comments
Open

Libdl.so missing DSO from command line (undefined reference) #34

spiketg opened this issue Jul 22, 2019 · 0 comments

Comments

@spiketg
Copy link

spiketg commented Jul 22, 2019

I've been porting this code to work with opencv3. So far I have made it through most of the compilation but I keep getting this error when its almost complete. I have looked at a number of occurances of this issue but none of the solutions have worked for me as yet. Any help would be greatly appreciated then, once the OpenCV3 version is working I'd be happy to share my code.

So far I've tried:
-creating the symbolic link to libdl.so manually (as this solved a few similar errors I had earlier in the compliation)
-adding -ldl as a flag, and in the cmakelists

  • rearranging the order of the included libraries as that has been known to have an effect

so far nothing has worked.
any advice?

[ 92%] Linking CXX executable ../bin/TestBump /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libhdf5.a(H5PL.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5' /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libdl.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status config/CMakeFiles/TestBump.dir/build.make:149: recipe for target 'bin/TestBump' failed make[2]: *** [bin/TestBump] Error 1 CMakeFiles/Makefile2:196: recipe for target 'config/CMakeFiles/TestBump.dir/all' failed make[1]: *** [config/CMakeFiles/TestBump.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant