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

‘__int64’ was not declared #2068

Closed
M-Tonin opened this issue Apr 27, 2020 · 4 comments
Closed

‘__int64’ was not declared #2068

M-Tonin opened this issue Apr 27, 2020 · 4 comments
Labels
kind: question solution: invalid the issue is not related to the library state: needs more info the author of the issue needs to provide more details

Comments

@M-Tonin
Copy link

M-Tonin commented Apr 27, 2020

  • Describe what you want to achieve.
    src/../include/json.hpp:13704:61: error: ‘__int64’ was not declared in this scope
    std::memmove(buf + 2, buf + 1, static_cast<size_t>((__int64)k - 1));
  • Describe what you tried.
    Try to compile de json hpp in linux.
  • Describe which system (OS, compiler) you are using.
    g++ 7.04
    Linux, (works fine in windows)
  • Describe which version of the library you are using (release version, develop branch).
@nlohmann
Copy link
Owner

Which version are you using? In the develop branch, the code does not contain __int64, and the lines with memmove are the following:

std::memmove(buf + (static_cast<size_t>(n) + 1), buf + n, static_cast<size_t>(k) - static_cast<size_t>(n));
std::memmove(buf + (2 + static_cast<size_t>(-n)), buf, static_cast<size_t>(k));
std::memmove(buf + 2, buf + 1, static_cast<size_t>(k) - 1);

@nlohmann nlohmann added the state: needs more info the author of the issue needs to provide more details label Apr 28, 2020
@M-Tonin
Copy link
Author

M-Tonin commented Apr 28, 2020

I am using single_include/json.hpp from develop.
I have notice now the master branch.
Should I take the master code instead of ?

@nlohmann
Copy link
Owner

In any case, the code does not contain __int64. Can you please check whether you included some headers before json.hpp which may re-define std::int64_t or the like?

@M-Tonin
Copy link
Author

M-Tonin commented Apr 28, 2020

You are right, for same reason the code I had got had this "__int64". But it doesn't really exist. I can't say what happened. Sorry and thanks!

@M-Tonin M-Tonin closed this as completed Apr 28, 2020
@nlohmann nlohmann added the solution: invalid the issue is not related to the library label Apr 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: question solution: invalid the issue is not related to the library state: needs more info the author of the issue needs to provide more details
Projects
None yet
Development

No branches or pull requests

2 participants