Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com List-Unsubscribe: List-Archive: List-Help: , Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <199907291413410790.1E09EF81@bemidji> In-Reply-To: <19990729184831.7113.rocketmail@web122.yahoomail.com> References: <19990729184831 DOT 7113 DOT rocketmail AT web122 DOT yahoomail DOT com> X-Mailer: Calypso Version 3.00.00.13 (1) Date: Thu, 29 Jul 1999 14:13:41 -0500 From: "Dan Oelke" To: cygwin AT sourceware DOT cygnus DOT com, "Raman Bakshi" Subject: Re: Optimizing code with cygwin gcc?? Content-Type: text/plain; charset="us-ascii" [...]when i compile and link my code using >the -O1 or -O2 options i get get tons of error >messages during linking time ( gcc -o -O2 exe_name >obj1.o obj2.o). [...] To get rid of your error messages what you need to do is: gcc -o exe_name -O2 obj1.o obj2.o NOT gcc -o -O2 exe_name obj1.o obj2.o But, that will not do any optimization, because that is linking which won't do any real optimization. What you need to do is change your compile line that creates the .o files to look like gcc -c -O2 obj1.c Good luck! Dan -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com