Re: [Dev-C++] Core dumped error - linux, gcc 4.1.2
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2007-04-06 19:07:00
|
You are using memory that you don't own. Either you are using uninitialized pointers, or you have a valid block of memory (for example an array) but you are trying to access the block outside the available memory (for example by using an incorrect index to an array, or incrementing a pointer past the end of the allocated memory and then using the pointer). Build the program with debug information, and then start it in gdb. It will show you where you get the segmentation error. /pwm On Fri, 6 Apr 2007, super.ismiti wrote: > Hi, > > I'm starting to work with C++ and I don't know too much about the errors... > I've already searched about (core dumped) in the Internet, but I've not > understood it yet. > > I have a program that I need run in the OS Linux. This program is working > correctly. > But I made an extension to this program and I compiled this one again, it > seemed work right. > But when I run this program now an error is showed: Segmentation fault (core > dumped). > > I don't understand what it can be. What kind of error is it... > If you could explain to me what this error is about, probably I will be able > to find the error that could be in my source. > > The structure of the files are: > - I created two files: file.cc and file.h > - I run make (with a Makefile file) command in the shell and it works > correctly > - I run the program (./program), that will use the files that I created and > the error is showed > > I really appreciate any kind of help! > > Thanks in advance, > Ricardo. > |