attribute appertains to a friend declaration that is not a definition

Open
#342 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cmake, cpp
Domain
build-system

Research direction

Start with boost/thread/detail/thread.hpp at line 641 and reproduce the reported CMake build of the Kodierungstheorie target from main.cpp. Check the compiler and Boost configuration involved in the diagnostic; done means the target builds without the friend-declaration attribute error.

Written by the indexing model from the issue text.

Description

====================[ Build | Kodierungstheorie | Debug ]=======================
/usr/local/bin/cmake --build /home/benjamin-elias/CLionProjects/Kodierungstheorie/cmake-build-debug --target Kodierungstheorie -- -j 6
Scanning dependencies of target Kodierungstheorie
[ 16%] Building CXX object CMakeFiles/Kodierungstheorie.dir/main.cpp.o
In Datei, eingebunden von /home/benjamin-elias/Downloads/boost_1_76_0/boost/thread/thread_only.hpp:22,
von /home/benjamin-elias/Downloads/boost_1_76_0/boost/thread/thread.hpp:12,
von /home/benjamin-elias/Downloads/boost_1_76_0/boost/thread.hpp:13,
von /home/benjamin-elias/CLionProjects/Kodierungstheorie/main.cpp:2:
/home/benjamin-elias/Downloads/boost_1_76_0/boost/thread/detail/thread.hpp:641:37: Fehler: attribute appertains to a friend declaration that is not a definition
641 | friend id BOOST_THREAD_DECL this_thread::get_id() BOOST_NOEXCEPT;
| ^~~~~~~~~~~
make[3]: *** [CMakeFiles/Kodierungstheorie.dir/build.make:72: CMakeFiles/Kodierungstheorie.dir/main.cpp.o] Fehler 1
make[2]: *** [CMakeFiles/Makefile2:85: CMakeFiles/Kodierungstheorie.dir/all] Fehler 2
make[1]: *** [CMakeFiles/Makefile2:92: CMakeFiles/Kodierungstheorie.dir/rule] Fehler 2
make: *** [Makefile:124: Kodierungstheorie] Fehler 2

Dominant language
C++
Stars
213
Forks
171
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/thread

All issues in boostorg/thread

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.