Strip symbols from executable lazarus / 9-Editor ---------------------------------------------------------------------- Anonymous · 2004-12-07 22:45 Hi all, there is a problem with "Strip symbols from executable" -Xs in compiler options->linking. I'm trying to strip out all debugging infos in order to reduce the executable size, but the compiler seems to ignore -Xs option: without -Xs I obtain 5 mb; with -Xs 8 mb... :shock: Now I'm using strip.exe utility. My Lazarus version is win32 0.9.2 beta ---------------------------------------------------------------------- Vincent Snijders · 2004-12-08 08:18 Did you disable generating debug info and line number info? ---------------------------------------------------------------------- Anonymous · 2004-12-08 12:56 Yes, I did it. No way to strip out... :/ ---------------------------------------------------------------------- Anonymous · 2004-12-17 11:49 I have the same problem: swithced to strip.exe and upx ---------------------------------------------------------------------- Lightning · 2004-12-17 13:31 Good old console does the trick ---------------------------------------------------------------------- marmin · 2005-03-03 23:22 I d-loaded the newest WIN32 version, still, the 'Strip' option don't work. manually strip does, indeed, the trick. ---------------------------------------------------------------------- G-Man · 2005-04-08 00:39 I am new here . I have used Delphi 5, 6, 7 . I allso am haveing a problem with the Strip............ THanks For the comment's ---------------------------------------------------------------------- Lightning · 2005-04-08 10:14 Type "strip --strip-all yourapp" in the console. ---------------------------------------------------------------------- johny_cage · 2005-04-08 11:02 I recommend you to search the forum, there are a few topics which are resolving this problem. 1. Go to the: \pp\bin\i386-win32\strip --strip-all file.exe file.exe must be in the strip directory 2. download the upx: \upx -9 source_file.exe -o output_file.exe 3. From 5 to 8 megs it decreases executabel file to 400-600 KB of normal form with a few components On the linux you should look for /usr/share/ Type man strip in the console ---------------------------------------------------------------------- Anonymous · 2005-05-22 16:53 The problem probably lies in ld.exe so even using strip --strip-all seems do not stripping all symbols