C++ compilation fails to find standard library

me's Avatar

me

15 Sep, 2015 01:04 AM

Hi,

My project is using a small script I made to download boost and build it from source as a pre-build step. Somehow since this week, the build has been keeping failing with the following errors:

fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory
fatal error C1083: Cannot open include file: 'stddef.h': No such file or directory
fatal error C1083: Cannot open include file: 'stdlib.h': No such file or directory

You see the full log [here](https://ci.appveyor.com/project/kittikun/takoyaki/build/job/7yguk47h6t7blm51).

Those are basic headers that should be part of the path. So I was wondering did the system $PATH changed ?

Thank you

  1. Support Staff 1 Posted by Feodor Fitsner on 15 Sep, 2015 01:14 AM

    Feodor Fitsner's Avatar

    Last updated was yesterday: http://www.appveyor.com/updates. The only thing I see that "touched" VS 2015 was this: https://github.com/appveyor/ci/issues/397 However, I don't understand how that affected VC14 tooling. What should be in PATH? Is there something missing after VS update?

  2. 2 Posted by me on 15 Sep, 2015 01:27 AM

    me's Avatar

    Thanks for the quick reply. I am not sure what is going on, since the call to cl.exe seems to be working fine I am assuming that you are running things from a VS command prompt. Then the standard library paths should be known.
    I am not sure if $PATH is related, it seems that $(VCInstallDir) would be more appropriate.

  3. 3 Posted by me on 15 Sep, 2015 01:40 AM

    me's Avatar

    I did add a

    Write-Host "VCInstallDir="$Env:VCInstallDir

    And it came up empty

  4. Support Staff 4 Posted by Feodor Fitsner on 15 Sep, 2015 02:04 AM

    Feodor Fitsner's Avatar

    Oh, snap. Looks like WDK 10 messed up includes: http://stackoverflow.com/questions/31862627/vs2015-cl-cant-find-crt...

    The solution is to rename wdf folder as part of your build script (PowerShell):

    ren 'C:\Program Files (x86)\Windows Kits\10\include\wdf' '00wdf'
    

    I've tried it here and it worked: https://ci.appveyor.com/project/FeodorFitsner/takoyaki/build/1.0.4#L4

    I filed the issue along with solution here: https://github.com/appveyor/ci/issues/414

  5. Support Staff 5 Posted by Feodor Fitsner on 15 Sep, 2015 02:06 AM

    Feodor Fitsner's Avatar

    Btw, boost 1.59.0 is now pre-installed on build workers in C:\Libraries\boost_1_59_0

  6. 6 Posted by me on 15 Sep, 2015 02:11 AM

    me's Avatar

    Thank you for the ultra-fast support :)

    (yes, I will upgrade my script for boost)

  7. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:00 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac