Ok. I got it work. I figured out what I was doing. The only code I didn't post was the main function file--which turned out to be the problem. I was editing the wrong file. I removed ptl_interfaces.h from CB, and coppied it to a new file named ptl_interfaces.hpp. I added the new file to the project. I forgot to change the include in the main cpp file. It was still including the old file.
Ok, now part 2. I got the answer as to what was causing all the errors from posting on the mingw users forum. Basically, the code I was trying to use:
namespace ptl {
//#include <string>
//#include <utility>
#include <map> //#2
using namespace std; //#1
}
doesn't work with mingw. I don't know if it is supposed to be legal c++. #1 screws up gcc's look up according to Thomas Tutone. He also said #2 was erronous to map it into ptl.
Next, Where do you get mingw 4.1.0? I got 3.4.4 floating around my system (older CB installation), and 3.4.5 installed. I wouldn't mind having 4.1.0 floating around too. Although, I think I'd just use 3.4.5 the most. Finally, no more "sleep coding" for me! I was really tired, and trying to bang something out quickly. Strickly caffine induced programming late at night from now on. Thanks for the help, and keep up the good work.
jmccay