Re: FW: Mixing C/C++ code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:
> http://forums.devshed.com/c-programming-42/calling-c-function-from-c-492886.
> html

Robert,

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 for Linux:

  http://valgrind.org/

Valgrind can be used to detect several types of memory access errors.

Good luck!

--
Tony Wetmore



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux