X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,WEIRD_PORT X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Eric Lilja Subject: Re: C++ program produces no output (g++ 4.3.2, cygwin 1.7) Date: Fri, 24 Apr 2009 22:15:54 +0200 Lines: 58 Message-ID: References: <49F210AB DOT 8000602 AT gmail 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: <49F210AB.8000602@gmail.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 Hi Dave! Dave Korn wrote: > > Something seems to be up with tar as well, unless you meant for all those > files to have no perms when unpacked? > > $ tar xvf cpp-program.tar > AVL_Tree.h > AVL_Tree.cc > avl_tree-test.cc > Makefile > > $ ls -lart > total 105 > ---------- 1 DKAdmin None 299 Sep 13 2007 Makefile > ---------- 1 DKAdmin None 1584 Sep 13 2007 AVL_Tree.h > ---------- 1 DKAdmin None 13774 Sep 13 2007 AVL_Tree.cc > ---------- 1 DKAdmin None 5616 Apr 23 21:31 avl_tree-test.cc > drwxrwxrwt 1 DKAdmin None 73728 Apr 24 20:06 .. > drwxr-xr-x 1 DKAdmin None 4096 Apr 24 20:06 . No, I did not mean for the permissions to be gone. Something happened when I moved from XP or Vista maybe, I talked a little about it with Corinna about it in this thread (well, it's split into two threads since one reply broke the threading :)). Annoying problem, though! > > $ make > g++ -Wall -Wextra -std=c++98 -pedantic -g -c avl_tree-test.cc > AVL_Tree.cc: In static member function 'static void > AVL_Tree_Node::insert(const Comparable&, > AVL_Tree_Node*&) [with Comparable = int]': > AVL_Tree.cc:481: instantiated from 'void AVL_Tree::insert(const > Comparable&) [with Comparable = int]' > avl_tree-test.cc:20: instantiated from here > AVL_Tree.cc:194: warning: null argument where non-null required (argument 1) > g++ avl_tree-test.o -o testavl.exe Hmm, are you running gcc 4.4? Because I don't see that warning. It compiles and links without warning when I add "-Wl,--enable-auto-import" to LDFLAGS. > > >> Program exited with code 030000000005. > > That's octal for 0xC0000005 aka STATUS_ACCESS_VIOLATION. Does adding > "-Wl,--enable-auto-import" to LDFLAGS help any? Yes, it does. :) But you knew that already since you have already replied? :) Or maybe something happened when you posted and one got delayed. Anyway, thanks for your help, Dave, and let me also thank you so much for your work on gcc! And there are alot more people deserving thanks as well on this list! It's been very exiciting following cygwin these past few months! - Eric Lilja -- 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/