Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!usc!rutgers!rochester!kodak!ispd-newsserver!strollo From: strollo@ssd.kodak.com (larry strollo ) Newsgroups: comp.lang.c++ Subject: Re: Mixing C with C++ Message-ID: <1991Apr23.133931.6716@ssd.kodak.com> Date: 23 Apr 91 13:39:31 GMT References: <1991Apr22.064847.16929@cs.nott.ac.uk> Sender: news@ssd.kodak.com Organization: Eastman Kodak Lines: 47 In article <1991Apr22.064847.16929@cs.nott.ac.uk> gas@cs.nott.ac.uk () writes: >> >> I've had quite a response so I thought other people might be >> interested in the necessary details. ...... particulars deleted ........ >> >> This is the easy bit. The second step involves linking using C++ and >> not C. Most of my replies pointed this out, but I had done this and >> still encountered problems (sorry for not pointing this out before). I'm confused. Since the linker is just linking object files (generated from C I might add), what is special about the C++ "linker" ? Do you really mean that some special C++ libraries are linked in (in which case I should be able to do the same thing by just explicitly calling out the libraries in the link command, shouldn't I) ? >> The crucial step is that the file with main() needs to be compiled >> using C++ even if it is in a c file. Thanks to those people who >> pointed this out. >> I'm working on a set of programs that are going to be implemented in C++, but must provide an interface callable from C. It's probably not going to be reasonable for me to insist that the user have Cfront. Am I in trouble ? >> I felt a bit of an idiot when I realised the solution, but several of >> my replies missed this too, so I don't feel quite so bad....:-) >> >> Alan Shepherd >> >> Not nearly as bad as I'm going to feel if the answer to my last question is "yes" ! |8-} Larry Strollo strollo@ssd.kodak.com] -- ------------------------------------------------------------------------------ Larry Strollo strollo@ssd.kodak.com (716) 726-0901 Integration & Systems Products Division Eastman Kodak Co Rochester NY ------------------------------------------------------------------------------