This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project. See the Cygwin home page for more information.
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Compiling with "-O2 -s" and crashing.


Charlie Tran wrote:
> 
>        I try to compile a C++ program using the flag:
> "-O2 -s" to make the executable file smaller, but the file will
> crash if I run it (while a normal compiled executable file works
> OK).
> 
>        Any idea for the use of "-O2 -s"?
>        Thanks for reading this.

Try using only -O2 and see if it works. If it does you can
try stripping the executable afterwards. Are you by any chance
using w95 or w98?

Regards,
Anders

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com