> Am 05.09.2013 23:10 schrieb "Incongruous" <[email protected]>: >> >> #ifndef __cpluplus >> std::cout << "error\n A C++ compiler is required!" << std::endl; >> return -1; >> #endif >> The above snip says, if __cplusplus has not been defined print “bla bla” >> and return –1. Which means that if I am using __cplusplus it should NOT >> print anthing, right? So, am I using the C or the C++ compiler? I am really >> confused. >
You are doing a compile-time check by #ifndef __cplusplus, but you are using a runtime message print (which you are doing in C++ ways, btw).. If your purpose is to determine whether you are using a C++ compiler, you should do something like: #ifndef __cplusplus #error A C++ compiler is required! #endif -- O.S. ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
