|
From: Josh H. <jo...@ct...> - 2003-08-05 07:23:48
|
I have a (stupid?) question. Attatched is some code written in Dev C++ 4.01. The code compiles fine using the full Dev C++ 4.01 package (ie. including the Mingw compiler). The problem is that when I try to compile it using the latest beta release of Dev C++ (4.981) I get numerous errors. I am aware that these 2 versions of Dev C++ use different versions of the Mingw compiler, and presume that this is where the problem lies. My question is what is wrong with my code that it doesn't compile under the newer version of Mingw? I have determined that the problem lies in my header file (headers.h), as the project seems to compile fine if I add the line "using namespace std" to the header file, but I don't see why I need to add this line, as I've individually qualified everything that needs qualifying (or am I missing something here?) and I believe it is bad practice to use using declarations in header files. To run the program, redirect one of the candidates.txt files into the program from the command line. ie. type: programName < candidates.txt Any help would be much appreciated. Thanks. |