public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* RE: g++ compiled code using cout results in a stackdump
@ 2000-09-04  1:06 Al Slater
  0 siblings, 0 replies; 2+ messages in thread
From: Al Slater @ 2000-09-04  1:06 UTC (permalink / raw)
  To: ' Bruce E Rosen <rosen@CS.UCLA.EDU>'
  Cc: 'cygwin@sourceware.cygnus.com'

Hi, 

I had a similar problem when using g++ on Solaris, and it was due to linking with libC.so which is the Sun supplied c++ library, which supplied a cout (and cin, cerr, clog) as well.  You possibly have a similar situation, either directly or are using a library which is linked with another c++ library implementation.

Hope this helps,

Al Slater



-----Original Message-----
From: "Bruce E Rosen"<rosen@CS.UCLA.EDU> [ mailto:rosen@CS.UCLA.EDU ]
Sent: 04 September 2000 05:20
To: <cygwin@sources.redhat.com>
Cc: "Bruce E Rosen"<rosen@CS.UCLA.EDU>
Subject: g++ compiled code using cout results in a stackdump


I am compiled the simple hello world program (a.cpp) in C++:
#include <iostream>
void main()
{
        cout << "Hello World\n";
}
compiled it.
	g++ a.cpp
and the following output was produced when run:
a.exe
      0 [main] A 1185 handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
   8012 [main] A 1185 stackdump: Dumping stack trace to A.EXE.stackdump

The problem is the iostream.  (Using gdb, I had tracked the problem down
to the cout statment from a much larger program). g++ had worked
previously, but now now (after the most recent updates) Im running g++
version 2.95.2, on the most recent version of cygwin (I've installed all
the updates using setup.exe) on Windows98.

I tried uninstalling and reinstalling gcc, but there was no change. Any
help, hints, etc would be appreciated.
	thanks
	bruce
Diagnostic info:

PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/bin:/USR/LOCAL/BIN:/usr/bin:/WINDOWS/
DESKTOP/BIN:.:/WINDOWS:/WINDOWS:/WINDOWS/COMMAND:/usr/bin:/usr/bin:/USR/LOCAL/BI
N:/WINDOWS/DESKTOP/BIN/VIM/VIM56:/Windows/Desktop/bin/vim/vim56:/jdk1.2.2/bin






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





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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* g++ compiled code using cout results in a stackdump
       [not found] <Pine.SOL.4.10.10009032059310.5883-100000@kiwi.cs.ucla.edu>
@ 2000-09-03 21:20 ` Bruce E Rosen
  0 siblings, 0 replies; 2+ messages in thread
From: Bruce E Rosen @ 2000-09-03 21:20 UTC (permalink / raw)
  To: cygwin; +Cc: Bruce E Rosen

I am compiled the simple hello world program (a.cpp) in C++:
#include <iostream>
void main()
{
        cout << "Hello World\n";
}
compiled it.
	g++ a.cpp
and the following output was produced when run:
a.exe
      0 [main] A 1185 handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
   8012 [main] A 1185 stackdump: Dumping stack trace to A.EXE.stackdump

The problem is the iostream.  (Using gdb, I had tracked the problem down
to the cout statment from a much larger program). g++ had worked
previously, but now now (after the most recent updates) Im running g++
version 2.95.2, on the most recent version of cygwin (I've installed all
the updates using setup.exe) on Windows98.

I tried uninstalling and reinstalling gcc, but there was no change. Any
help, hints, etc would be appreciated.
	thanks
	bruce
Diagnostic info:

PATH=/usr/local/bin:/usr/bin:/usr/bin:/usr/bin:/USR/LOCAL/BIN:/usr/bin:/WINDOWS/
DESKTOP/BIN:.:/WINDOWS:/WINDOWS:/WINDOWS/COMMAND:/usr/bin:/usr/bin:/USR/LOCAL/BI
N:/WINDOWS/DESKTOP/BIN/VIM/VIM56:/Windows/Desktop/bin/vim/vim56:/jdk1.2.2/bin






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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-09-04  1:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-04  1:06 g++ compiled code using cout results in a stackdump Al Slater
     [not found] <Pine.SOL.4.10.10009032059310.5883-100000@kiwi.cs.ucla.edu>
2000-09-03 21:20 ` Bruce E Rosen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).