C++ program produces no output (g++ 4.3.2, cygwin 1.7)

Eric Lilja mindcooler@gmail.com
Fri Apr 24 20:45:00 GMT 2009


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<Comparable>::insert(const Comparable&,
> AVL_Tree_Node<Comparable>*&) [with Comparable = int]':
> AVL_Tree.cc:481:   instantiated from 'void AVL_Tree<Comparable>::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/



More information about the Cygwin mailing list