You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the Makefile, I got three error for compiling Permute.cc:
compiling Permute.cc
In file included from Permute.cc:15:
./Permute.hh:303:60: error: call to 'abs' is ambiguous
if (!Precursor::states_[s].used_[i] && (size_t(abs(i - Precursor::states_[s].depth_)) < Precursor::distortionLimit_)) { // !!! LIMIT
^~~
./Permute.hh:294:5: note: in instantiation of member function 'Fsa::IBMPermuteAutomaton<Fsa::NoProcessing>::permuteArcs' requested here
IBMPermuteAutomaton(ConstAutomatonRef f, u32 windowSize, u16 distortionLimit, Processing* processing)
^
Permute.cc:23:34: note: in instantiation of member function 'Fsa::IBMPermuteAutomaton<Fsa::NoProcessing>::IBMPermuteAutomaton' requested here
return ConstAutomatonRef(new T(f, windowSize, distortionLimit, new NoProcessing));
^
Permute.cc:27:12: note: in instantiation of function template specialization 'Fsa::permute<Fsa::IBMPermuteAutomaton<Fsa::NoProcessing>>' requested here
return permute<IBMPermuteAutomaton<NoProcessing>>(f, windowSize, distortionLimit);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/stdlib.h:132:6: note: candidate function
int abs(int) __pure2;
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/stdlib.h:107:39: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long abs(long __x) _NOEXCEPT {
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/stdlib.h:111:44: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/stdlib.h:118:40: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY float abs(float __lcpp_x) _NOEXCEPT {
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/stdlib.h:122:41: note: candidate function
inline _LIBCPP_INLINE_VISIBILITY double abs(double __lcpp_x) _NOEXCEPT {
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/stdlib.h:127:1: note: candidate function
abs(long double __lcpp_x) _NOEXCEPT {
^
This error occurred thrice, since the abs function is called three times.
There are possible abs functions for int, long, long long, float, double, and long double.
Therefore, the input for abs is either non of those or has to be set directly.
Possible solution
I'm not a proficient C++ programmer, so my solution might not be right.
Please comment on this and feel free to correct my approach.
When setting the datatype of the abs parameter, the error resolves:
Hi guys,
I tried to setup and install RASR for the first time following the Beginners How To on https://www-i6.informatik.rwth-aachen.de/rwth-asr/manual/index.php/Beginner%27s_Howto
I executed the scripts/requirements.sh and this executed well.
Error
When running the
Makefile
, I got three error for compilingPermute.cc
:This error occurred thrice, since the
abs
function is called three times.There are possible
abs
functions for int, long, long long, float, double, and long double.Therefore, the input for
abs
is either non of those or has to be set directly.Possible solution
I'm not a proficient C++ programmer, so my solution might not be right.
Please comment on this and feel free to correct my approach.
When setting the datatype of the
abs
parameter, the error resolves:Adding an
int(...)
inside theabs(...)
, resolved the error.This could be a versioning issue. Here my version information:
Maybe someone can reproduce this and check if the error occurs as well.
Regards,
Frederick
The text was updated successfully, but these errors were encountered: