Re: 'log2' is not a member of 'std'

2017-07-04 Thread Jan Stary
On Jul 04 20:27:43, h...@stare.cz wrote: > > Clang can support C++11 if you use -stdlib=libc++. > Yes it does: clang++-mp-3.4 -stdlib=libc++ prog.cc On Jul 02 13:02:44, ryandes...@macports.org wrote: > But on Snow Leopard, since it does not include libc++, you'd have to install > it first (the l

Re: 'log2' is not a member of 'std'

2017-07-04 Thread Jan Stary
std::log2(2.3456789f); > > return 0; > > } > > > > results in > > > > 'log2' is not a member of 'std'. > > > > This happens with the system g++, which is i686-apple-darwin10-g++-4.2.1, > > each

Re: 'log2' is not a member of 'std'

2017-07-02 Thread Ryan Schmidt
.3456789f); >> return 0; >> } >> results in >> 'log2' is not a member of 'std'. >> This happens with the system g++, which is i686-apple-darwin10-g++-4.2.1, >> each of g++-4.0 g++-4.2 g++-mp-5 g++-mp-6, and with clang++-mp-3.4; >&

Re: 'log2' is not a member of 'std'

2017-07-02 Thread Joshua Root
This is MacOSX 10.6.8 running various compilers provided by MacPorts. Compiling the following C++ source #include int main(void) { double d = std::log2(2.3456789f); return 0; } results in 'log2' is not a memb

Re: 'log2' is not a member of 'std'

2017-07-02 Thread Ken Cunningham
> int main(void) > { > double d = std::log2(2.3456789f); > return 0; > } > > results in > > 'log2' is not a member of 'std'. > > This happens with the system g++, which is i686-apple-darwin10-g++-4.2.1, > each of g++

Re: 'log2' is not a member of 'std'

2017-07-02 Thread Jan Stary
On Jul 02 12:35:25, jeanfgo...@gmail.com wrote: > Could you test with the file renamed as « prog.cc »? > I remember that gcc is picky about the extension. Same thing.

Re: 'log2' is not a member of 'std'

2017-07-02 Thread Jean-Francois Gobin
llowing C++ source > > #include > > int main(void) > { > double d = std::log2(2.3456789f); > return 0; > } > > results in > > 'log2' is not a member of 'std'. > > This happen

'log2' is not a member of 'std'

2017-07-02 Thread Jan Stary
This is MacOSX 10.6.8 running various compilers provided by MacPorts. Compiling the following C++ source #include int main(void) { double d = std::log2(2.3456789f); return 0; } results in 'log2' is not a memb