[Dev-C++] Duplicate name and header problem.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: DC A <ad...@ho...> - 2007-03-08 22:04:40
|
I've defined a function named plus outside of all namespace and when i use that function in my source code and compile, compiler spews an error because plus is already defined in libstdc++ and backward/function.h has a line like below: using std::plus; So plus is already defined in gnu c++ library. In my source file i included <iostream> and <string> headers at the beginning. So i was thinking somehow <backward/function.h> is getting attached to my source file. my question is: When i include <iostream> and <string> header files at the beginning of my source code, where exactly in the source code of libstdc++ <backward/function.h> gets included? As a newbie i'm a bit confused. can anyone kindly clarify this matter? Thanks. _________________________________________________________________ RealLiveMoms: Share your experience with Real Live Moms just like you http://www.reallivemoms.ca/ |