Image

Imagesparkymark wrote in Imagecpp

Big exe from Dev-C++

I build my little application with Dev-C++ 4.9.8.0 on Windows XP SP1 like this...

Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing  make clean
rm -f Project1/main.o Project1/Item.o Project1/PluginImplementation.o Project1/CheshireCat.o Project1/Output.o Project1/Plugin.o  Project1.exe

g++.exe -c Project1/main.cpp -o Project1/main.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"  

g++.exe -c Project1/Item.cpp -o Project1/Item.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"  

g++.exe -c Project1/PluginImplementation.cpp -o Project1/PluginImplementation.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"  

g++.exe -c Project1/CheshireCat.cpp -o Project1/CheshireCat.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"  

g++.exe -c Project1/Output.cpp -o Project1/Output.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"  

g++.exe -c Project1/Plugin.cpp -o Project1/Plugin.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include"  

g++.exe Project1/main.o Project1/Item.o Project1/PluginImplementation.o Project1/CheshireCat.o Project1/Output.o Project1/Plugin.o  -o "Project1.exe" -L"C:/Dev-Cpp/lib" 

Execution terminated
Compilation successful




as far as I know I am not compiling with debug: the only option I could find for it in Dev-Cpp was under "linker" and switching that off shrank the executable Project1.exe from 1376K to 473K but that still seems a lot for 13K of source and 71K of object files. Is there something I'm missing about Dev-C++, the underlying compiler (options?) or the linker? Does using the STL cause bloat (my first time using it here)? Is Windows XP just like that (my first native code after much Java)?

Edit: Thanks for everyone's help: I installed the Visual C++ Toolkit 2003 and after the joy of working out the command line syntax I have produced a 116K executable which is much more believeable.