[comp.lang.c++] How to interface C sources with C++ ones?

omtzigt-theo@CS.YALE.EDU (Erwinus Theodorus Leonardus Omtzigt (Theo)) (11/05/90)

I have spent two days trying to interface two pieces of code, one
old fashioned C code (using quite a bit of gcc's options), and the
other a data structure manipulator written in C++, but was unsuccessful.
The problem occurs in the epilogue of the program. On exit it
seg faults, with the following information;

    signal SEGV (no mapping at the fault address)
                in flush__7ostreamFv at 0xf77923ec
    flush__7ostreamFv+0x10: ld      [%o0 + 8], %o0
    (dbx) where
    flush__7ostreamFv() at 0xf77923ec
    __dt__13Iostream_initFv() at 0xf7794fd8
    __std_____stream_sa_c_() at 0xa178
    __dtors__Fv() at 0xf77903e4
    exit() at 0xf7790308

The file containing main is compiled with gcc.
How do I get rid of this problem? Thanks in advance,

Theo Omtzigt

-- 
InterNet: omtzigt-theo@cs.yale.edu	mail: Becton Center, 15 Prospect Str
Phone:	  (203) 432 - 4261		      Yale University, Dept. of EE