Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!yale!cs.yale.edu!omtzigt-theo From: omtzigt-theo@CS.YALE.EDU (Erwinus Theodorus Leonardus Omtzigt (Theo)) Newsgroups: comp.lang.c++ Subject: How to interface C sources with C++ ones? Message-ID: <27057@cs.yale.edu> Date: 4 Nov 90 17:36:33 GMT Sender: news@cs.yale.edu Distribution: usa Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158 Lines: 25 Nntp-Posting-Host: topos.systemsz.cs.yale.edu 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