This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: FW: Mixing C/C++ code


On Nov 30, 2007 4:12 AM, Robert Wong <rgwong@cs.ucla.edu> 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

Try a return after your printf in the test function.  It's possible
your pointer into that function is somehow uninitialized and causing
memory access problems.

-Tom

Tom Browder
Niceville, Florida
USA


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]