Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <20051020130601.82903.qmail@web30005.mail.mud.yahoo.com> Date: Thu, 20 Oct 2005 06:06:01 -0700 (PDT) From: community help Subject: problem with g++ on cygwin To: cygwin AT cygwin DOT com In-Reply-To: <43579205.1090801@scytek.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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 ". 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 #include 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/