an error and a warning
an error and a warning
Hi, just tried myself under OSX.
With gcc, I get errors also.
But isn't gcc for compiling straight c, not c++. So try use: g++, thus:
g++ test.cpp -lm -o testworks perfectly. Getting exact same results as those illustrated.
Login