The problem is that when I compile a source file as part of a project, it will not include debugging information. I've set it to in the linker options, but it always tells me the debugging info is not included. Even after I recompile it. I don't have this problem if the source is not part of a project, but I like arranging my code in projects, it's neater.
--Anthony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2007-07-15
If you are using a project, you have to set the option in the Project->Project options dialog, not the Tools->Compiler options dialog.
The Tools->Compiler options should only be used for standard options you want applied to all projects, and these options are only applied at project creation.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Big three:
(1) Dev-C++ 4.9.9.2, on Windows XP Corp
(2)
include <cstdlib>
include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
cout << "Hello World!" << endl;
system("PAUSE");
return EXIT_SUCCESS;
}
(3)
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\MyCode\C++\Hello World\Makefile.win"
Executing make clean
rm -f main.o "Hello World.exe"
g++.exe -c main.cpp -o main.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include" -I"C:/Dev-Cpp/include/c++/3.4.2/backward" -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2" -I"C:/Dev-Cpp/include"
g++.exe main.o -o "Hello World.exe" -L"C:/Dev-Cpp/lib"
g++.exe main.o -o "Hello World.exe" -L"C:/Dev-Cpp/lib"
Execution terminated
Compilation successful
The problem is that when I compile a source file as part of a project, it will not include debugging information. I've set it to in the linker options, but it always tells me the debugging info is not included. Even after I recompile it. I don't have this problem if the source is not part of a project, but I like arranging my code in projects, it's neater.
--Anthony
If you are using a project, you have to set the option in the Project->Project options dialog, not the Tools->Compiler options dialog.
The Tools->Compiler options should only be used for standard options you want applied to all projects, and these options are only applied at project creation.
Clifford