Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!usc!apple!marc From: marc@Apple.COM (Mark Dawson) Newsgroups: comp.sys.mac.programmer Subject: external C fcns from MPW C++ Keywords: C++ Message-ID: <49510@apple.Apple.COM> Date: 23 Feb 91 17:50:07 GMT References: <1991Feb21.202709.16319@bwdls61.bnr.ca> <49509@apple.Apple.COM> Organization: Apple Computer Inc., Cupertino, CA Lines: 30 I've run into a problem when trying to call a C function from my C++ code--I don't know how to tell C++ that this is a C function: void x() { Boolean IsItThere(); // my external C fcn if (IsItThere()) DoIt(); } The Linker complains because it can't find "IsItThere__Fv". I know that I can do : extern "C" { Boolean IsItThere(); Boolean WasItThere(); } But this doesn't seem to work when declaring the function from inside a a function. Is what I want to do possible? If it is, how can you do it? Thanks, Mark -- --------------------------------- Mark Dawson Service Diagnostic Engineering AppleLink: Dawson.M Apple says what it says; I say what I say. We're different ---------------------------------