X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Eric Lilja Subject: Re: R: C++ program produces no output (g++ 4.3.2, cygwin 1.7) Date: Fri, 24 Apr 2009 09:38:35 +0200 Lines: 36 Message-ID: References: <38415 DOT 45131 DOT qm AT web25001 DOT mail DOT ukl DOT yahoo DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <38415.45131.qm@web25001.mail.ukl.yahoo.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Marco Atzeri wrote: > > try > LDFLAGS = -Wl,--enable-auto-import -o $(EXEC) Yes, that did fix it, thank you very much. I should have tried it myself and I apologise for not doing so. The reason why I didn't, is that the other programs I tried earlier worked even if I ignored this warning and this is such a simple program. I thought I could avoid having to change all my Makefiles only have to change them back again when the next release of g++ comes, heh. Now I know better. Anyway, the cygcheck problem remains and I noticed something else when copying the Makefile with cp: cp Makefile Makefile3 then I opened it with my native windows emacs and it only says: file exists but cannot be read. So I checked the permissions on it with ls -l: $ ls -l Makefile3 ---------- 1 mindcooler None 299 Apr 24 09:32 Makefile3 and the original: $ ls -l Makefile ----------+ 1 Guest None 299 Sep 13 2007 Makefile but emacs has no problem working with the original. What's going on? Having to chmod copied files to be able to work with them seems odd. Btw, you don't have to mail me copies of replies. I read the list on gmane configured as a newsgroup in my email client. - EL > > Regards > Marco > -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/