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

Compiler ERror #45

Open
Chaircrusher opened this issue Dec 1, 2017 · 1 comment
Open

Compiler ERror #45

Chaircrusher opened this issue Dec 1, 2017 · 1 comment
Labels

Comments

@Chaircrusher
Copy link

OS:
Simple module pack version: (git SHA1 if builded from sources)
Module concerned: ClockDivider
Description: Compiler Error
Steps to reproduce: make
This is on Centos7 with G++ 4.8.5

g++ -I"." -fPIC -I../../include -I../../dep/include -MMD -g -O3 -march=nocona -ffast-math -fno-finite-math-only -Wall -Wextra -Wno-unused-parameter -DARCH_LIN -std=c++11 -c -o build/src/ClockDivider.cpp.o src/ClockDivider.cpp
In file included from src/ClockDivider.cpp:3:0:
./utils/Algorithm.hpp: In instantiation of ‘constexpr const T& clamp(const T&, const T&, const T&, Compare) [with T = float; Compare = std::less]’:
./utils/Algorithm.hpp:16:42: required from ‘constexpr const T& clamp(const T&, const T&, const T&) [with T = float]’
src/ClockDivider.cpp:190:141: required from here
./utils/Algorithm.hpp:11:1: error: body of constexpr function ‘constexpr const T& clamp(const T&, const T&, const T&, Compare) [with T = float; Compare = std::less]’ not a return-statement
}
^
make: *** [build/src/ClockDivider.cpp.o] Error 1

@IohannRabeson
Copy link
Owner

I guess your compiler is too old. Currently I'm using g++-7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants