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

Build fails on mingw #113

Closed
Kreijstal opened this issue Dec 10, 2023 · 0 comments · Fixed by #114
Closed

Build fails on mingw #113

Kreijstal opened this issue Dec 10, 2023 · 0 comments · Fixed by #114

Comments

@Kreijstal
Copy link
Contributor

Kreijstal commented Dec 10, 2023

In file included from C:/Users/kreij/scoop/apps/msys2/2022-01-28/home/kreij/stable-diffusion.cpp/util.cpp:1:
C:/Users/kreij/scoop/apps/msys2/2022-01-28/home/kreij/stable-diffusion.cpp/util.h:20:1: error: 'int32_t' does not name a type
   20 | int32_t get_num_physical_cores();
      | ^~~~~~~
C:/Users/kreij/scoop/apps/msys2/2022-01-28/home/kreij/stable-diffusion.cpp/util.h:5:1: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
    4 | #include <string>
  +++ |+#include <cstdint>
    5 |
make[2]: *** [CMakeFiles/stable-diffusion.dir/build.make:104: CMakeFiles/stable-diffusion.dir/util.cpp.obj] Error 1
make[1]: *** [CMakeFiles/Makefile2:167: CMakeFiles/stable-diffusion.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

It gets fixed if you import before using int32_t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant