| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Message-ID: | <20051020130601.82903.qmail@web30005.mail.mud.yahoo.com> |
| Date: | Thu, 20 Oct 2005 06:06:01 -0700 (PDT) |
| From: | community help <helpcomm AT yahoo DOT com> |
| Subject: | problem with g++ on cygwin |
| To: | cygwin AT cygwin DOT com |
| In-Reply-To: | <43579205.1090801@scytek.de> |
| MIME-Version: | 1.0 |
| X-IsSubscribed: | yes |
Hi,
I'm using g++ on cygwin for developping some c++
programs.
I noticed that everytime i manipulate pointers i have
an error saying:
"Segmentation Fault <Core Dumped>".
An other file is added to the working directory. If i
compile with the following:
g++ -o file_name file_name.cc
i have a file_name.exe but also a
file_name.exe.stackdump.
i wrote a very simple example for testing:
----------------------
#include <iostream.h>
#include <string.h>
int main()
{
char * str;
str = "hello";
*(str+1) = 'a';
return 0;
}
---------------------
This simple example also gave me the same error.
I hope somebody can help me with this.
Thank you
__________________________________
Yahoo! Music Unlimited
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |