Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-2489

Build error C3861: 'sleep': identifier not found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.9.0
    • 1.9.1
    • c++
    • Windows Server 2016,

      VS2019,

      cmake 3.15,

      vcpkg 2019.06.26

      Jenkins 2.186

    Description

      Steps to reproduce:

      mkdir _build
      cd _build
      cmake -G "Visual Studio 16 2019" -A x64 .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="PATH_TO_vcpkg.cmake" -DCMAKE_INSTALL_PREFIX="PATH_TO_INSTALL"
      • Built with
      cmake --build . --config Release
      
      • Installed with
      cmake --build . --config Release --target Install
      

      During the last (install) step received an error

      PATH_TO_WORKSPACE\workspace\avro\avro\lang\c++\test\DataFileTests.cc(592,13): error C3861:  'sleep': identifier not found [PATH_TO_WORKSPACE\workspace\avro\avro\lang\c++\_build\DataFileTests.vcxproj]

       

      Possible hotfix found https://social.msdn.microsoft.com/Forums/vstudio/en-US/fdc9d1c3-1082-4c0d-a717-a39313562d4f/sleep?forum=vclanguage

      Need to change 'sleep(1)' to 'Sleep(1)' in lang/c++/testDataFileTests.cc
      After that build (and install) completed without errors

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            drewripa Andrew Ripa
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: