This is the mail archive of the
mailing list for the GCC project.
Re: FW: Mixing C/C++ code
- From: Tony Wetmore <tony dot wetmore at solipsys dot com>
- To: Robert Wong <rgwong at cs dot ucla dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 30 Nov 2007 13:37:42 -0500
- Subject: Re: FW: Mixing C/C++ code
- References: <C375221F.1FCDemail@example.com>
Robert Wong wrote:
> I'm a CS student working on a project that mixes C/C++ compiling
> both with g++. If you have the time I was hoping you could help.
> I've described the problem with some depth here:
I wonder if the problem is related to the C/C++ mixing at all. Instead,
you may have a memory access bug causing the crash, such as using an
invalid pointer or overwriting some portion of your program stack.
Since you mentioned that you are using Linux, you might want to look at
testing your program with Valgrind, a memory debugging tool available
Valgrind can be used to detect several types of memory access errors.