problem with g++ on cygwin

community help
Thu Oct 20 13:07:00 GMT 2005


I'm using g++ on cygwin for developping some c++

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
i have a file_name.exe but also a

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.

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list