To go in a bit more on what FurryGuy said, the error isn't in your stdafx.h file. As he said, it's just a precompiled header you get when you don't create an empty project, and it's incredibly annoying because it returns errors for every project source or header file that doesn't include it as either the first non-comment in source files, or after your header guard in header files. Luckily it produces an error that looks nonsensical, then says, "Did you include stdafx.h first?" or something along those lines.
With Stroustrup's custom header, I think the issue you're encountering is that there is custom error handling included in it. I know for certain that he has a predefined error handler included, and I believe it takes the error and a string to print a message to the user. It has been awhile so I don't know for certain, but that's a good candidate for your error message:
error C2661: 'error': no overloaded function takes 1 arguments (the error function is defined in the header file "std_lib_facilities.h") |
Could almost be roughly translated as, "The function you've used takes more or fewer arguments than you've passed."
Hope that at least helps a bit.
Also OP, you should probably bookmark or download these files when you get to chapter 11...
https://github.com/Yawzheek/Stroustrup-Graphics
When you go to install FLTK, follow his instructions TO THE LETTER, try (TRY) and use the graphics files he includes on his site here:
http://stroustrup.com/Programming/PPP2code/
And if they don't work, replace them with the codes I've shown you. They're not perfect, I threw them together using help I found all over the internet (after no less than 12 hours of pain trying), but they SHOULD get you up and running, at least enough to get you through the relevant chapters.