turionpowercontrol / tpc

Cross-platform utility to control and tweak modern AMD processors
36 stars 12 forks source link

error while compilation on Manjaro #40

Closed egodasa closed 7 years ago

egodasa commented 7 years ago

tpc I found that tpc available as a "bin" file for ubuntu, but not with Manjaro. So, I compile it manually and i got this error. Previously, I'm using Archlinux and everything ok. But on Manjaro i see that error. Thx :)

egodasa commented 7 years ago

Problem fixed. I'm using another version on gcc and now it works.

ArnouldN commented 3 years ago

I have still the same bug in Ubuntu 20.04 and Linux Mint Debian Edition. So issue was closed but not corrected...

It is because function round() is defined twice, in the libraries of gcc and again in the source code of TurionPowerControl. If the funtion's name is modified in the files MSVC_Round.h and MSVC_Round.cpp to eg round_mod() then compilation is OK. TurionPowerControl then uses the standard round() function of gcc but works very well.