POV-Ray : Newsgroups : povray.general : pov source gcc3 problem : Re: pov source gcc3 problem Server Time
6 Aug 2024 02:23:32 EDT (-0400)
  Re: pov source gcc3 problem  
From: Thorsten Froehlich
Date: 8 Aug 2002 15:59:59
Message: <3d52cdbf@news.povray.org>
In article <3d52579e@news.povray.org> , Warp <war### [at] tagpovrayorg>  wrote:

>   The problem is that it lacks the std:: prefix (either in the function calls
> themselves or implicitly through a 'using' command). This is simply a human
> mistake; the original intention was to use the C++ standard functions.

Unfortunately not.  The "using namespace std;" in config.h is the only
appropriate way as it makes sure everything works fine even with outdated
C++ library versions and compilers not supporting namespaces.  So hardcoding
namespace usage into the source code just for this would cause more trouble
than problems it would solve.  And using macros (as previously in frame.h)
is no longer an option as it tends to cause trouble for ISO compliant C++
compiler and library combinations!

The real problem is that nobody seems to have read the Unix source code
notes which probably tell which compiler was used.  How to properly adjust
the source code for a different compiler and library combination is the job
of the person compiling, not that of the POV-Team.  And that is precisely
what config.h is for*.

    Thorsten

* And that is why in the Mac specific config.h you will findexactly that
line: using namespace std;

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.