Bruce Adams [TEPG Sunbury] wrote: >> -----Original Message----- >> From: Max Bowsher [mailto:[EMAIL PROTECTED] >> Sent: 06 March 2003 11:39 >> To: Bruce Adams [TEPG Sunbury] >> Cc: [EMAIL PROTECTED] >> Subject: Re: Exception: STATUS_PRIVILEGED_INSTRUCTION occurs >> before main is executed. >> >> >> Bruce Adams [TEPG Sunbury] wrote: >>>> -----Original Message----- >>>> From: Brian Ford [mailto:[EMAIL PROTECTED] >>>> It is not legal to use gcc for compiling c++ code. You >> must use g++. >>>> >>> This is not true. >>> I use gcc -x c++ which should be identical. >> >> I believe that g++ will auto-include standard C++ libraries, >> but gcc -xc++ will not. >> >> Max. >> > That makes sense. Presumably I should only use gcc -x c++ if > I wish to use an alternative library implementation such as STLPort > which I have been considering (in order to test portability).
Even then, you don't need -xc++ unless you are compiling C++ code in a file not ending with one of ".C .cc .cxx .cpp .c++". Max. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/