POV-Ray : Newsgroups : povray.programming : C vs. C++ : Re: C vs. C++ Server Time
28 Jul 2024 20:26:23 EDT (-0400)
  Re: C vs. C++  
From: Nieminen Mika
Date: 30 Jun 1999 06:30:06
Message: <3779f1ae@news.povray.org>
This is true. Moreover, if you want to call a C-function from C++-code,
you have to declare the function as: extern "C" foo bar(); (because the
internal naming convention is different for C and C++).

  Btw, how do I call a C++ function from C?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.