POV-Ray : Newsgroups : povray.programming : qnx povray3.5 : Re: qnx povray3.5 Server Time
28 Jul 2024 08:19:41 EDT (-0400)
  Re: qnx povray3.5  
From: Thorsten Froehlich
Date: 18 Sep 2002 05:44:04
Message: <3d884ae4$1@news.povray.org>
In article <web.3d87fbc8266bdc38a420ead10@news.povray.org> , "mike" 
<mik### [at] hotmailcom> wrote:

> So, the error I was having determines whether anyone else has been able to
> compile povray 3.5 on QNX? Rather strange I would thank.

No, but try to think about it this way:  there are two answers to your
question.  Yes, I have problems and no, I don't have problems.  Neither
answer helps you, but the next question for either answer would be what
problem do you have?  So I decided to skip waiting for the answer as QNX
isn't exactly the most widely used operating system and thus the probability
to get an answer here is rather low ;-)

> In any case I come to the conclusion that the answer is no and that I am in
> need of help resolving the error I am getting.
>
> In file included from frame.h:56,
>                  from atmosph.cpp:31:
> config.h:43: algorithm: No such file or directory
> atmosph.cpp:50: algorithm: No such file or directory

Well, as you know, POV-Ray requires a C++ compiler.  This also implies you
have the standard libraries a C+ compiler needs and that are part of every
C++ compiler package.  The problem is that you either have not specified the
appropriate include path for the library include file "algorithm" (it is
correct that it does not have a ".h" extension!), or that you do not have it
or that you simply have a C++ compiler / library combination from
prehistoric days (older than about five years).

So there are a few possible solutions:

a) Add the include path to your makefile.

b) Update you compiler / library combination.

c) See if you can locate a file called "algorithm.h" and then create a file
called "algorithm" in the same location and add "#include <algorithm.h>" in
the "algorithm" file.

d) If you do not have "algorithm" or "algorithm.h", create a file called
"algorithm" in your library include directory (where you find files such as
"stdio.h").  In that file add your own definitions of the functions min and
max (one that takes doubles, one that takes floats, one that takes int and
one that takes longs), which is basically all POV-Ray needs from
"algorithm".  Be aware that POV-Ray expects - and as mandated by the ISO C++
standard - min and max to be _functions_ not macros!


    Thorsten


____________________________________________________
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.