We try to keep our books accurate, but sometimes mistakes creep in. This page lists the errors submitted by our astute readers. If you've found a new error, please submit it.

The latest version of the book is P1.0, released 9 months ago. If you've bought a PDF of the book and would like to upgrade it to this version (for free), visit your home page.

Key: Typo Tech. Error Suggestion Not a problem Next edition

By default this page displays the errata for the latest version of the book. If you have a previous version, select it here:  

(To find out what version you have, look at the copyright page, a few pages in from the front of the book. If it says (say) 'Second Printing', then here it'll be P2.0. If there are interim PDF releases in that printing, they'll be 2.1, 2.2, and so on.)

PDF Paper Description Found in Fixed in
7
#76571: Maverick (OS X 10.9) changed the default stdlib library. To get Ch.2 examples working, I had to force gmock to build with libc++. Use: ./co...more...
P1.0
27-Mar-14
9

#76613: Download the appropriate file and unpack, perhaps into a new directory named pputest within your home directory.
pputest should be cpputest.--Akiyuki TAKOSHIMA

P1.0
04-Apr-14
11
#52553: patch instructions for the OS X install are missing a "-i" flag, i.e line should read: patch -p1 -i [path to file]/rlog.diff I cop...more...
B6.0
01-Sep-13
20
#53309: On Ubuntu 13.10 I had the following linking errors regarding pthread in the chapter 2 exercises: undefined reference to `pthread_getspecif...more...
P1.0
07-Dec-13
86

#52574: "hapharzardly" -> should be "haphazardly"--Mahmood Hanif

B6.0
04-Sep-13
107
#52970: The code examples at pragprog.com/titles/lotdd/source_code for chapter 5 no longer work with Google Mock 1.7 :-( You get compiler errors abou...more...
B7.0
22-Sep-13
160
#52992: In the middle of the first paragraph you write: "... (first inserting an empty vector if needed)." It's not needed. The code auto...more...
B7.0
28-Sep-13
161
#52993: c6/17/Portfolio.h Template interface should either be T Find(const std::unordered_map<std::string, T>& map, const std::string& key) const ...more...
B7.0
28-Sep-13
166
#52996: End of second paragraph read (Look at the source download to see the final tests.) Looking at the source code downloaded from the book sit...more...
B7.0
29-Sep-13
192

#53312: The bad example code and the improved" version at the bottom of the page are exactly the same.

P1.0
08-Dec-13
192

#76490: 1st paragraph, last sentence:
but others wom't -> but others won't--Holger Detering

P1.0
07-Mar-14
192

#76491: Except for the increased indentation is HoldingServiceTest.cpp identical in Branches 18 and 19.

The execution statement is isolated in Branch 20. --Holger Detering

P1.0
07-Mar-14
204
#53007: In "4. We copy the for loop ..." the code shows rLog(channel, "writing %i samples", samplesToWrite); but should be rLog(channel, "wri...more...
B7.0
05-Oct-13
211
#53008: Consider using nullptr instead of 0 as the return value for RLogChannel *getComponent(RLogChannel *componentParent, const char *component){ ...more...
B7.0
05-Oct-13