The error "undefined reference to ..." means the linker can't find the object code for some symbol which is used in your program, in this case the implementation of bit_file_c::bit_file_c() and others mentioned in the error message.
I downloded the bitfile code from the page you linked to. Did you build it yet (using the make command)? If so, you should have a file called bitfile.o. This is the object file containing the necessary object code. All you have to do is tell the compiler to look in this file:
Code:
g++ ctest3.cc bitfile.o -o ctest3
Other minor things: The C++ header files should not have the .h suffix. Since the C++ standard was made, youo should be including headers like this (note some old C headers still use the .h suffix) :
Code:
#include "bitfile.h"
#include <sys/stat.h>
#include <fstream>
#include <iostream>
#include <string>
It generally works with the .h, but the namespaces will probably not be set up properly.
One last thing, I personally prefer to call all C++ files .cpp rather then .cc. This seems to be the norm these days.