Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-97426

Compiling a file, including net14/boost outcome fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.6, 6.0.1, 6.1.3, 6.2.0
    • Build tools: moc
    • None
    • Windows

    Description

      Moc fails to compile a file, when including https://github.com/ned14/outcome/tree/v2.2.1. The moc fails with:

      Output
      ------
      :/cmake_cache/outcome/5646b35378b8e3020ae2bbc54723d17d238be8c9/include/outcome/config.hp(159:1): error: Parse error at "outcome_v2_35644"
      

      Steps to reproduce:
      1. Create an example Qt-Project with custom Widget
      2. Clone https://github.com/ned14/outcome/tree/v2.2.1
      3. Add the header only lib to the path
      4. Add the includes

          #include <outcome/experimental/status_result.hpp>
          #include <outcome/try.hpp>
      

      5. Try to compile

      Another bug here: Interestingly, many strings are cut:

      Output
      ------
      :/cmake_cache/outcome/5646b35378b8e3020ae2bbc54723d17d238be8c9/include/outcome/config.hp(159:1): error: Parse error at "outcome_v2_35644"
      ^ Missing 'C' here                                                                      ^ Missing 'p' here                              ^ Missing rest from short git tag here
      

      Attachments

        Activity

          People

            fabiankosmale Fabian Kosmale
            febbe Fabian Keßler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: