Date: | Wed, 24 Oct 2007 11:49:09 -0500 |
---|---|
From: | Derek Hower <drh5@xxxxxxxxxxx> |
Subject: | Re: [Gems-users] RUBY compilation error |
Anup-Show me how you overloaded it and the error message you get after overloading. -Derek anup_m@xxxxxxxxxxxxxxxxxxx wrote: Derek, I typecast with double but getting same error. which math library version should I use. Regards, ANupYou just need to typecast the parameters to the pow function as double since it appears your version of the math library/compiler doesn't like integer parameters. -Derek anup_m@xxxxxxxxxxxxxxxxxxx wrote:Hi All, I am getting following error while compiling ruby on redhat 9.0, simics 3.0 & gcc 3.2 version. Please help me with solution. Regards, Anup *************************************************************** simics/util In file included from system/CacheMemory.h:78, from generated/MOSI_SMP_bcast/Types.h:51, from generated/MOSI_SMP_bcast/Chip.h:9, from generated/MOSI_SMP_bcast/Chip.C:3: system/PseudoLRUPolicy.h: In constructor `PseudoLRUPolicy::PseudoLRUPolicy(long long int, long long int)': system/PseudoLRUPolicy.h:58: call of overloaded `pow(int, unsigned int&)' is ambiguous /usr/include/bits/mathcalls.h:154: candidates are: double pow(double, double) /usr/include/c++/3.2.2/cmath:427: long double std::pow(long double, int) /usr/include/c++/3.2.2/cmath:423: float std::pow(float, int) /usr/include/c++/3.2.2/cmath:419: double std::pow(double, int) /usr/include/c++/3.2.2/cmath:410: long double std::pow(long double, long double) /usr/include/c++/3.2.2/cmath:401: float std::pow(float, float) make[1]: *** [x86-linux/generated/MOSI_SMP_bcast/obj/Chip.o] Error 1 make[1]: Leaving directory `/home/anup/workspace/gems-2.0/ruby' make: *** [all] Error 2 ************************************************************ _______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/gems-users Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search._______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/gems-users Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search._______________________________________________ Gems-users mailing list Gems-users@xxxxxxxxxxx https://lists.cs.wisc.edu/mailman/listinfo/gems-users Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/" to your search. |
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | Re: [Gems-users] SINGLE_ACCESS_L2_BANKS Usage, Mike Marty |
---|---|
Next by Date: | Re: [Gems-users] Multiple workspaces from one codespace, Joseph Greathouse |
Previous by Thread: | Re: [Gems-users] RUBY compilation error, anup_m |
Next by Thread: | Re: [Gems-users] RUBY compilation error, anup_m |
Indexes: | [Date] [Thread] |