From: Greg C. <chi...@mi...> - 2003-09-25 05:58:07
|
Parinya Thipchart wrote: > > I have MinGW installed at "C:\MinGW" and "C:\MinGWStudio\MinGW" they both > are the same tools(as above) > > c:\mingw\bin\g++ -g2 -o c:\test\mingw\winhello\winhello.exe > c:\test\mingw\winhello\winhello.cpp -mwindows > > I get winhello.exe size "710,332" OK > - but if I use this command(Actually changed the tools directory) > > c:\mingwstudio\mingw\bin\g++ -g2 -o c:\test\mingw\winhello\winhello.exe > c:\test\mingw\winhello\winhello.cpp -mwindows > > I get winhello.exe size "710, 844" OK > and if I move the whole "MinGW" directory to someware else and call from > this MinGW I will get the different size winhello.exe size in debug mode. > > My question: Does the tools directory matter for gdb debugging information? Examining an object file I recently created here, I see stuff inside like: //C/gcc-2.95.2-1/bin/../lib/gcc-lib/i386-mingw32msvc/2.95.2/../../../../include/g++-3/std/bastring.h The tools in your directories C:\MinGW C:\MinGWStudio\MinGW don't know that they hold identical contents. You may want to step into <bastring.h> when you're debugging, so the binary files must store the absolute location of any system headers you use. THe longer the directory name, the more space this data takes. |