"Missing Binary Operator Before Token "C" "

Open
#364 3 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
cpp

Research direction

Start by reproducing the preprocessor error in boost/thread/pthread/thread_data.hpp at line 60 on Ubuntu 20.04 or 22.04 with the reported GCC versions. Compare the behavior with the original Boost.Thread issue and the linked KAPOWMINER report. Done means identifying a confirmed resolution for the PTHREAD_STACK_MIN check and verifying that the affected configuration compiles.

Written by the indexing model from the issue text.

Description

Another user on Ubuntu 20.04 who is experiencing this issue with gcc 10.x, I'm on Ubuntu 22.04 with gcc 11.2.0. (Quoting the original issue which is from 2019 and has been closed; where someone had an issue on Solaris)

My specific issue (Identical to original)

./boost/thread/pthread/thread_data.hpp:60:5: error: missing binary operator before token "("
   60 | #if PTHREAD_STACK_MIN > 0
      |     ^~~~~~~~~~~~~~~~~

Still facing this issue. Is the issue closed? Ubuntu 20.04 and g++ --version = 10.3.0

Originally posted by @seerviashish in https://github.com/boostorg/thread/issues/283#issuecomment-1003548201

Related to Issue in KAPOWMINER: https://github.com/RavenCommunity/kawpowminer/issues/111

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.