Re: [Dev-C++] confusing stuff in headers
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alvin T. <alv...@th...> - 2004-08-12 12:08:02
|
Daniel K. O. wrote: > Noorez Kassam wrote: > >> where is _cplusplus defined? > > > > It's a built-in macro, defined when you are compiling in C++ mode. > > > > Daniel K. O. what danny said. that construct is used to allow c programs to be able to link to the library that's produced by that code, even if it's c++ code. of course, that does NOT mean that you can slap it around any c++ header and expect it to work; you can't export any non-c stuff (like overloaded functions). -alvin |