ATL-based C++ projects fail to build

Paul Betts's Avatar

Paul Betts

01 Aug, 2014 11:38 AM

Check out: https://ci.appveyor.com/project/fakepaulbetts/squirrel-windows-next/build/1.0.4 (source at https://github.com/Squirrel/Squirrel.Windows.Next)

As part of this build, we build an WTL-based application, which requires ATL. However, builds on AppVeyor fail (perhaps ATL isn't installed?)

c:\projects\squirrel-windows-next\src\setup\stdafx.h(22): fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory [C:\projects\squirrel-windows-next\src\Setup\Setup.vcxproj]

  1. Support Staff 1 Posted by Feodor Fitsner on 01 Aug, 2014 12:48 PM

    Feodor Fitsner's Avatar

    OK, will take a look what's missing.

  2. 2 Posted by Paul Betts on 01 Aug, 2014 12:57 PM

    Paul Betts's Avatar

    You may have to step back a commit or two (or switch the configuration from
    CIBuild to Release), I created a new profile that excluded the C++ project
    (sorry to troll you!)

    Paul

  3. Support Staff 3 Posted by Feodor Fitsner on 03 Aug, 2014 12:05 PM

    Feodor Fitsner's Avatar

    Hi Paul,

    We have Visual Studio Express editions on build workers and it's seems ATL is not available with Express: http://msdn.microsoft.com/en-us/library/windows/hardware/dn653318(v...

  4. 4 Posted by Cheng Zhao on 07 Aug, 2014 03:43 PM

    Cheng Zhao's Avatar

    WDK 7.1 includes ATL's headers and libs, I think it is very reasonable to install it in the workers since many C++ programs require ATL.

  5. Support Staff 5 Posted by Feodor Fitsner on 07 Aug, 2014 04:46 PM

    Feodor Fitsner's Avatar

    OK, WDK 7.1 has been installed on build workers and is available in default location: C:\WinDDK\7600.16385.1.

  6. 6 Posted by Cheng Zhao on 08 Aug, 2014 02:30 AM

    Cheng Zhao's Avatar

    That works for me, it is really fast response, thanks!

  7. Support Staff 7 Posted by Feodor Fitsner on 08 Aug, 2014 02:31 AM

    Feodor Fitsner's Avatar

    Great, thanks for the update!

    - Feodor

  8. 8 Posted by Paul Betts on 08 Aug, 2014 08:52 AM

    Paul Betts's Avatar

    This is great! Thanks Feodor - as Cheng said, this is a super fast fix. Thank you so much!

  9. 9 Posted by Kevin Sawicki on 19 Sep, 2016 08:11 PM

    Kevin Sawicki's Avatar

    Saw a few failures today that look like the same issue, not sure if it is related to the today's worker image update or not:

    https://ci.appveyor.com/project/Atom/electron/build/2176/job/ngh0sxfrwjx5cqng#L427

    ```
    c:\projects\electron\atom\browser\ui\win\jump_list.h(8): fatal error C1083: Cannot open include file: 'atlbase.h': No such file or directory
    ```

  10. Support Staff 10 Posted by Feodor Fitsner on 19 Sep, 2016 08:14 PM

    Feodor Fitsner's Avatar

    Where is the location of that atlbase.h file?

  11. 11 Posted by Kevin Sawicki on 19 Sep, 2016 08:17 PM

    Kevin Sawicki's Avatar

    Where is the location of that atlbase.h file?

    I believe it is part of the Windows SDK.

  12. Support Staff 12 Posted by Feodor Fitsner on 19 Sep, 2016 08:19 PM

    Feodor Fitsner's Avatar

    Which one should be used? There was WDK 10.0.14393 installed: https://www.appveyor.com/updates/2016/09/19/ - maybe it's affected the SDK headers?

  13. 13 Posted by Kevin Sawicki on 19 Sep, 2016 08:24 PM

    Kevin Sawicki's Avatar

    Hmm, maybe this was just an intermitted issue.

    I rebuilt the failing build and the same SHA now builds successfully, https://ci.appveyor.com/project/Atom/electron/build/2179/job/6e6fbl...

  14. Support Staff 14 Posted by Feodor Fitsner on 19 Sep, 2016 08:32 PM

    Feodor Fitsner's Avatar

    That's because we've rolled back images due to a different issue.

  15. Support Staff 15 Posted by Feodor Fitsner on 20 Sep, 2016 05:15 PM

    Feodor Fitsner's Avatar

    A new image is back and we made sure ATL part is installed in VS 2015.

    Interesting though, it looks like there is a bug in VS installation somewhere as sometimes after rolling out updates to VS some of its features get disabled. We reproduced that on two different environments.

  16. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:08 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