|
From: | Marius Schamschula |
Subject: | Re: ocs 0.1.4 released |
Date: | Tue, 7 Jul 2015 15:05:22 -0500 |
Carlo, On Jul 7, 2015, at 12:09 PM, Carnë Draug <address@hidden> wrote: Hi everyone My compiler (clang 3.6.1) does not like the pow syntax in this version. I get several errors like: Mshichmanhodgesmosfet.cc:141:34: error: call to 'pow' is ambiguous *ids = k*((vgs-Vth)*vds - pow(vds,2)/2 ) + vds/rd; ^~~ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:961:1: note: candidate function [with _A1 = double, _A2 = int] pow(_A1 __x, _A2 __y) _NOEXCEPT ^ /opt/local/include/octave-3.8.2/octave/libcxx-fix.h:59:1: note: candidate function [with _A1 = double, _A2 = int] pow(_A1 __x, _A2 __y) _NOEXCEPT ^ /usr/include/math.h:443:15: note: candidate function extern double pow(double, double); ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:949:46: note: candidate function inline _LIBCPP_INLINE_VISIBILITY float pow(float __x, float __y) _NOEXCEPT {return powf(__x, __y);} ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:950:46: note: candidate function inline _LIBCPP_INLINE_VISIBILITY long double pow(long double __x, long double __y) _NOEXCEPT {return powl(__x, __y);} ^ I tried statically casting the variables, to no avail. Marius -- Marius Schamschula |
[Prev in Thread] | Current Thread | [Next in Thread] |