Menu

#2 Conflicting declaration of int64_t

open
nobody
None
1
2020-07-01
2020-07-01
No

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.

Discussion

  • Luigi Baldoni

    Luigi Baldoni - 2020-07-01

    Sorry, I must have been seeing double. That line doesn't help one iota.

     
  • Robert Kausch

    Robert Kausch - 2020-07-01

    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.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.