Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows build failed with error: 'regex.h' file not found #1

Open
pigmoral opened this issue Feb 7, 2024 · 0 comments
Open

Windows build failed with error: 'regex.h' file not found #1

pigmoral opened this issue Feb 7, 2024 · 0 comments
Assignees
Labels
bug Something isn't working os-windows

Comments

@pigmoral
Copy link
Owner

pigmoral commented Feb 7, 2024

Tested building on Windows but failed with:

PS C:\Users\007\Documents\nemu-zig-master> zig build
install
└─ install nemu-zig
   └─ zig build-exe nemu-zig Debug native
      └─ zig build-lib regex_slim Debug native 1 errors
C:\Users\007\Documents\nemu-zig-master\lib/regex_slim.h:4:10: error: 'regex.h' file not found
#include <regex.h>
         ^~~~~~~~~~
C:\Users\007\Documents\nemu-zig-master\lib\regex_slim.c:4:10: note: in file included from C:\Users\007\Documents\nemu-zig-master\lib\regex_slim.c:4:
#include "regex_slim.h"
         ^
error: the following command failed with 1 compilation errors:
C:\Users\007\Documents\zig-windows-x86_64-0.12.0-dev.2631+3069669bc\zig.exe build-lib -cflags -std=c99 -- C:\Users\007\Documents\nemu-zig-master\lib\regex_slim.c -ODebug -I C:\Users\007\Documents\nemu-zig-master\lib -Mroot -lc --cache-dir C:\Users\007\Documents\nemu-zig-master\zig-cache --global-cache-dir C:\Users\007\AppData\Local\zig --name regex_slim -static --listen=-
Build Summary: 1/5 steps succeeded; 1 failed (disable with --summary none)
install transitive failure
└─ install nemu-zig transitive failure
   └─ zig build-exe nemu-zig Debug native transitive failure
      └─ zig build-lib regex_slim Debug native 1 errors
error: the following build command failed with exit code 1:
C:\Users\007\Documents\nemu-zig-master\zig-cache\o\c7de7d9d364d15bba88283bbeea1f9bb\build.exe C:\Users\007\Documents\zig-windows-x86_64-0.12.0-dev.2631+3069669bc\zig.exe C:\Users\007\Documents\nemu-zig-master C:\Users\007\Documents\nemu-zig-master\zig-cache C:\Users\007\AppData\Local\zig --seed 0xdfd136a1 -Z812c558573d3ab84
@pigmoral pigmoral added bug Something isn't working os-windows labels Feb 7, 2024
@pigmoral pigmoral self-assigned this Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working os-windows
Projects
None yet
Development

No branches or pull requests

1 participant