8000 //lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line · Issue #58 · luoyetx/mini-caffe · GitHub
[go: up one dir, main page]

Skip to content
8000
This repository was archived by the owner on Jul 3, 2025. It is now read-only.
This repository was archived by the owner on Jul 3, 2025. It is now read-only.

//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line #58

Open

Description

@lucasjinreal

what is the error:

[100%] Linking CXX executable run_net
/usr/bin/ld: CMakeFiles/run_net.dir/tests/run_net.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
//lib/x86_64-linux-gnu/libpthread.so.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/run_net.dir/build.make:99: recipe for target 'run_net' failed
make[2]: *** [run_net] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/run_net.dir/all' failed
make[1]: *** [CMakeFiles/run_net.dir/all] Error 2
Makefile:83: recipe for target 'all' failed

Activity

  1. luoyetx commented on Jan 3, 2018

    @luoyetx
    Owner

    You need to link pthread, add link flags in tests.cmake

  2. lucasjinreal commented on Jan 3, 2018

    @lucasjinreal
    Author

    Why not add that directly in repo as people may always got this error.

  3. luoyetx commented on Jan 4, 2018

    @luoyetx
    Owner

    This error depends on your system platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0