Kata Step Zero
Setup
C++ programming environment
- If you're on Linux or Mac, you should already have a C++ programming environment. Try "gcc" at the command line. I created this kata using gcc 4.0.1; theoretically gcc 3.4 or higher should work fine.
If you're on Windows, an easy solution is to get the RubyInstaller Development Kit. This will give you gcc as well as make. I tested this kata on Windows XP with the ruby dev kit 3.4.5r3.
- If you have MSVC, it should work fine; you'll need to figure out your own makefile. I don't have MSVC so I haven't tested this kata with it.
googlemock and googletest
Download googlemock and build it, following the instructions in the README. This download also includes googletest.
- I created this kata using gmock-1.4.0.
Starter files for this kata
Download and unzip boundedqueue. This will give you a directory to follow this kata in, with four "starter files"
BoundedQueue.h BoundedQueueTest.cpp Makefile QueueControl.h
- You will need to edit Makefile to make LIB point to your installation of libgmock and libgtest, and INCLUDES to the appropriate include directory (I'm assuming you have one include directory that has gmock and gtest directories under it. Adjust as needed.) You should be able to type "make" and see a successful compile, and a test run with 1 passing test.
Go on to BoundedQueueKataStepOne... or go back to the introduction.
