[oclug] upgrade woes (what happened to Linux?)

Greg Franks rgfranks at alumni.uwaterloo.ca
Tue Nov 4 23:23:45 EST 2003


>>>>> "Kyle" == Kyle McMartin <kyle at gondolin.debian.net> writes:

    Kyle> On Tue, Nov 04, 2003 at 02:43:13PM -0500, Grant Wong wrote:
    >> <rant> WHEN THE HECK DID THEY FORMALIZE NAMESPACES IN G++
    >> ??!??!?!!  </rant>
    >> 
    Kyle> Perhaps you should have written standards compliant code in
    Kyle> the first place.

Yeah right -- You still have to fight to get the same code to compile
with g++ and SunPro CC (and other so-called standard compilers), to
wit:

/* Stoopid standards... */
#if defined(__SUNPRO_CC) && (__SUNPRO_CC >= 0x500)
#define FMT_FLAGS ios_base::fmtflags
#elif (defined(__GNUG__) && (__GNUG__ > 2)) || (defined(__INTEL_COMPILER) && (__INTEL_COMPILER >= 700))
#define FMT_FLAGS std::_Ios_Fmtflags
#else
#define FMT_FLAGS long
#endif

Perhaps there is a better way.

Automake/autoconf are your friends.
-- 
   __@               Greg Franks              <|       _~@ __O 
 _`\<,_         Ottawa, Ontario, Canada        |O\   -^\<;^\<, 
(*)/ (*)                                       (*)--(*)%---/(*)
          "Where do you want to go today?"   Outside.  



More information about the OCLUG mailing list