Skip to content

Including intrin.h triggers many errors on Windows #191

@doerrti

Description

@doerrti

Zig version

0.16.0-dev.427+86077fe6b

Problem

I recently tried to build one of my projects on Windows. The project depends on stb_image. That library includes intrin.h. Running the build command produces a 2.6MB text file full of errors and warnings (when piping stderr to a file). I can't really make sense of them.

Reproduction

  1. Create main.h:
#include <intrin.h>
  1. Run (pipe stderr to a file to see all the errors):
zig translate-c test.h -lc

Expected outcome

Translation succeeds

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions