seg fault during compliation
Bob Sumner
sumner@graphics.lcs.mit.edu
Sat Nov 4 12:22:00 GMT 2000
in my .H file I have:
public:
void AddLElement(LElement *element);
There's a misspellng. "AddLElement" should be "AddElement".
In my .C file I have:
void LAggregate::AddElement(LElement *element) {
....
}
Where it's spelled correctly. Fixing the spelling problem prevents
the seg fault.
I'm attaching the .ii.gz file. Here's the compile line:
sumner@metroid ~/dlg: g++ -v -save-temps -DJLLIB_LINUX -O2 -Wall
-I/home/sumner/research/JLLib/dist/1.53/include -I/usr/X11R6/include -c
laggregate.C
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.0)
/usr/lib/gcc-lib/i386-redhat-linux/2.96/cpp0 -lang-c++ -D__GNUG__=2 -v
-I/home/sumner/research/JLLib/dist/1.53/include -I/usr/X11R6/include
-D__GNUC__=2 -D__GNUC_MINOR__=96 -D__GNUC_PATCHLEVEL__=0 -D__ELF__ -Dunix
-Dlinux -D__ELF__ -D__unix__ -D__linux__ -D__unix -D__linux -Asystem(posix)
-D__OPTIMIZE__ -Wall -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__
-D__tune_i386__ -DJLLIB_LINUX laggregate.C laggregate.ii
GNU CPP version 2.96 20000731 (Red Hat Linux 7.0) (cpplib)
(i386 Linux/ELF)
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/i386-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
/home/sumner/research/JLLib/dist/1.53/include
/usr/X11R6/include
/usr/include/g++-3
/usr/lib/gcc-lib/i386-redhat-linux/2.96/include
/usr/include
End of search list.
/usr/lib/gcc-lib/i386-redhat-linux/2.96/cc1plus laggregate.ii -quiet -dumpbase
laggregate.C -O2 -Wall -version -o laggregate.s
GNU C++ version 2.96 20000731 (Red Hat Linux 7.0) (i386-redhat-linux) compiled
by GNU C version 2.96 20000731 (Red Hat Linux 7.0).
laggregate.C:21: no `void LAggregate::AddElement (LElement *)' member
function declared in class `LAggregate'
laggregate.C: In method `void LAggregate::AddElement (LElement *)':
laggregate.C:24: Internal error: Segmentation fault.
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: laggregate.ii.gz
Type: application/x-gzip
Size: 18612 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20001104/cd7888fd/attachment.bin>
More information about the Gcc-bugs
mailing list