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

Missing cstdint include #244

Closed
Venemo opened this issue May 13, 2024 · 2 comments
Closed

Missing cstdint include #244

Venemo opened this issue May 13, 2024 · 2 comments

Comments

@Venemo
Copy link

Venemo commented May 13, 2024

I get the following error when trying to build the latest version of Fossilize:

In file included from /home/Timur/Projects/valve/Fossilize/path.cpp:23:
/home/Timur/Projects/valve/Fossilize/path.hpp:51:44: error: ‘uint64_t’ has not been declared
   51 | bool get_mtime_us(const std::string &path, uint64_t &mtime_us);
      |                                            ^~~~~~~~
[ 86%] Built target SPIRV-Tools-opt
/home/Timur/Projects/valve/Fossilize/path.cpp:401:44: error: ‘uint64_t’ has not been declared
  401 | bool get_mtime_us(const std::string &path, uint64_t &mtime_us)
      |                                            ^~~~~~~~

This is solved by:

#include <cstdint>

in path.hpp

@HansKristian-Work
Copy link
Collaborator

Sure you have the latest version?

#pragma once
#include <stdint.h>
#include <string>
#include <utility>
#include <vector>

@Venemo
Copy link
Author

Venemo commented May 14, 2024

My mistake.

@Venemo Venemo closed this as completed May 14, 2024
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

No branches or pull requests

2 participants