Skip to content

[BUG]: Build fails on GCC 13.3.0 #27

Description

@Dami-18

Build fails on GCC 13.3.0 with error: invalid use of incomplete type ‘class Disruptor::ISequence’ in PhasedBackoffWaitStrategy.cpp

Environment

  • OS: Linux Mint (Ubuntu-based)
  • Compiler: GCC 13
  • Boost: installed via system package (libboost-all-dev)

Following is the error message:

/home/user/Disruptor-cpp/Disruptor/PhasedBackoffWaitStrategy.cpp:57:38: 
error: invalid use of incomplete type ‘class Disruptor::ISequence’
   57 |     if ((availableSequence = dependentSequence.value()) >= sequence)

README specifies GCC 5.0 as the minimum supported version. This appears to be caused by stricter incomplete-type enforcement in newer GCC versions. The fix is to #include "ISequence.h" in PhasedBackoffWaitStrategy.cpp

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions