Conflicting declaration of int64_t
Status: Beta
Brought to you by:
enzo
Building smooth 0.9.5 on openSUSE Leap 15.1, I'm seeing this error:
error: conflicting declaration 'typedef long long int int64_t'
Adding:
#include <cstdint>
to classes/system/cpu.cpp fixes the compilation problem.
No problem on the rolling (openSUSE Tumbleweed) release that uses the current gcc.
Anonymous
Sorry, I must have been seeing double. That line doesn't help one iota.
Looks like you reported the same issue on GitHub 2 years ago: https://github.com/enzo1982/smooth/issues/1
So, good to see you again, I guess! :)
OpenSUSE Leap 15.x has libcpuid 0.4.0 as you can see here: https://software.opensuse.org/package/libcpuid
The issue is fixed since libcpuid 0.4.1 and libcpuid 0.5.0 is available as an experimental package: https://software.opensuse.org/package/libcpuid15
So installing the libcpuid15 package in place of the libcpuid one should fix this issue.