I don't find function error() in my compiler(IDE)?

This is a discussion on I don't find function error() in my compiler(IDE)? within the C++ Programming forums, part of the General Programming Boards category; I've downloaded Bjarn Stroustrup's book with the title of Programming Principles and Practice Using C++ not so long. As I ...

I don't find function error() in my compiler(IDE)?

I've downloaded Bjarn Stroustrup's book with the title of Programming Principles and Practice Using C++ not so long. As I keep reading it and do the drills and examples, in the part of exception handling I've come across a function error(), but I haven't been able to call it till now.

Is it possible that there isn't such a function in my compiler (more exact: IDE).

Of course, I noticed this sad fact( dev-c++ hasn't been updated since 2005 till now), me too. But there are several site, where many people praise this good compact work, including this site and that's why I choose it to start learning c++ over one year ago. I insist on that little thing and don't let it lose despite descovering more and more lackness.

As the function error is concerned, probably you are right, this may be just a theoretical discription of the error handling, because I haven't find any such a c-function with that name so far, after thorough searchings on the whole www.

Look at pages 139 - 140 in section 5.5.1 the author describes this function and states that in his std_lib_facilities.h header file defines this function (also you might want to look in the book's index).

Of course, I noticed this sad fact( dev-c++ hasn't been updated since 2005 till now), me too. But there are several site, where many people praise this good compact work, including this site and that's why I choose it to start learning c++ over one year ago. I insist on that little thing and don't let it lose despite descovering more and more lackness.

The IDE/compiler has no effect on the language. You can learn the language fine and experiment with different IDEs/compilers, like Code::Blocks. Don't let it hinder you!