POV-Ray : Newsgroups : povray.newusers : Parse Error in Stones1.inc Server Time
29 Jul 2024 04:17:02 EDT (-0400)
  Parse Error in Stones1.inc (Message 3 to 12 of 12)  
<<< Previous 2 Messages Goto Initial 10 Messages
From: kurtz le pirate
Subject: Re: Parse Error in Stones1.inc
Date: 24 Mar 2007 05:42:04
Message: <kurtzlepirate-3EC4ED.11415524032007@news.povray.org>
In article <web.4604f30532f391763533adc80@news.povray.org>,
 "neelakantankk" <nee### [at] gmailcom> wrote:

> Hi, I am new to POV-Ray. I installed POV-Ray v3.6.1c after downloading the
> Windows 32bit installer from the website. But it is giving me a parse error
> in the file stones1.inc
> 
> The error message is
> 
> File: d: Program Files POV-Ray for Windows v3.6 INCLUDE stones1.inc  Line:
> 573
> File Context (5 lines):
>   color_map
>    {[0.0, 0.3 color White
> Parse Error: Expected 'color', undeclared identifier 'White' found instead
> 
> 
> Please help me out here
> 
> Neelakantan

just add :              #include "colors.inc"
in your scene before :  #include "stones1.inc"
 


-- 
klp


Post a reply to this message

From: Warp
Subject: Re: Parse Error in Stones1.inc
Date: 24 Mar 2007 07:48:32
Message: <46051e20@news.povray.org>
kurtz le pirate <kur### [at] yahoofr> wrote:
> just add :              #include "colors.inc"
> in your scene before :  #include "stones1.inc"

  Since stones1.inc uses colors.inc, it should include it itself.
I suppose there are historical reasons why it (still) doesn't do it.

-- 
                                                          - Warp


Post a reply to this message

From: kurtz le pirate
Subject: Re: Parse Error in Stones1.inc
Date: 24 Mar 2007 08:30:13
Message: <kurtzlepirate-26018B.14301324032007@news.povray.org>
In article <46051e20@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

> kurtz le pirate <kur### [at] yahoofr> wrote:
> > just add :              #include "colors.inc"
> > in your scene before :  #include "stones1.inc"
> 
>   Since stones1.inc uses colors.inc, it should include it itself.
> I suppose there are historical reasons why it (still) doesn't do it.


in most cases, scenes use "colors.inc" and including "stones1.inc" is ok.
just including "stones.inc" is not a current usage for a povray'neewbies 
:)))


-- 
klp


Post a reply to this message

From: Alain
Subject: Re: Parse Error in Stones1.inc
Date: 24 Mar 2007 09:29:02
Message: <460535ae@news.povray.org>
Warp nous apporta ses lumieres en ce 24-03-2007 08:48:
> kurtz le pirate <kur### [at] yahoofr> wrote:
>> just add :              #include "colors.inc"
>> in your scene before :  #include "stones1.inc"

>   Since stones1.inc uses colors.inc, it should include it itself.
> I suppose there are historical reasons why it (still) doesn't do it.

Maybe because the author used to always include colors.inc and assumed that 
everybody always do that first thing in any scene.

-- 
Alain
-------------------------------------------------
All extremists should be taken out and shot.


Post a reply to this message

From: neelakantankk
Subject: Re: Parse Error in Stones1.inc
Date: 24 Mar 2007 15:20:02
Message: <web.4605870c8602b2cb26314c8a0@news.povray.org>
Alain <ele### [at] netscapenet> wrote:
> Warp nous apporta ses lumieres en ce 24-03-2007 08:48:
> > kurtz le pirate <kur### [at] yahoofr> wrote:
> >> just add :              #include "colors.inc"
> >> in your scene before :  #include "stones1.inc"
>
> >   Since stones1.inc uses colors.inc, it should include it itself.
> > I suppose there are historical reasons why it (still) doesn't do it.
>
> Maybe because the author used to always include colors.inc and assumed that
> everybody always do that first thing in any scene.
>
> --
> Alain

Thanks everybody. I was including stones1.inc before colors.ins Never though
that the order of the statements would be the cause of the error. :oops:
Thanks for the help.

Cheers :-)


Post a reply to this message

From: Warp
Subject: Re: Parse Error in Stones1.inc
Date: 24 Mar 2007 16:44:39
Message: <46059bc6@news.povray.org>
neelakantankk <nee### [at] gmailcom> wrote:
> Thanks everybody. I was including stones1.inc before colors.ins Never though
> that the order of the statements would be the cause of the error. :oops:

  It's not your fault. IMO stones1.inc should be fixed.

-- 
                                                          - Warp


Post a reply to this message

From: neelakantankk
Subject: Re: Parse Error in Stones1.inc
Date: 25 Mar 2007 05:30:01
Message: <web.46064f098602b2cb686d3ae0@news.povray.org>
Just a question. If "stones.inc" uses "colors.inc" and i include
"colors.inc" in both "stones.inc" and my main file, will "colors.inc" be
parsed twice? or will it give an error?


Post a reply to this message

From: Warp
Subject: Re: Parse Error in Stones1.inc
Date: 25 Mar 2007 05:43:14
Message: <46065242@news.povray.org>
neelakantankk <nee### [at] gmailcom> wrote:
> Just a question. If "stones.inc" uses "colors.inc" and i include
> "colors.inc" in both "stones.inc" and my main file, will "colors.inc" be
> parsed twice?

  No, because there's an inclusion guard in stones1.inc:

#ifndef(Stones1_Inc_Temp)
#declare Stones1_Inc_Temp = version;

...

#end

-- 
                                                          - Warp


Post a reply to this message

From: Alain
Subject: Re: Parse Error in Stones1.inc
Date: 25 Mar 2007 07:06:26
Message: <460665c2$1@news.povray.org>
neelakantankk nous apporta ses lumieres en ce 25-03-2007 06:29:
> Just a question. If "stones.inc" uses "colors.inc" and i include
> "colors.inc" in both "stones.inc" and my main file, will "colors.inc" be
> parsed twice? or will it give an error?
> 
> 
It will be parsed only once. The default includes include a guard against that case.
Look at the following lines:
#ifndef(Colors_Inc_Temp)

#declare Colors_Inc_Temp = version;

Everything in colors.inc is contained in that #ifndef (means if NOT deffined).

-- 
Alain
-------------------------------------------------
A day for firm decisions!!!!!  Or is it?


Post a reply to this message

From: neelakantankk
Subject: Re: Parse Error in Stones1.inc
Date: 25 Mar 2007 15:35:02
Message: <web.4606dc688602b2cb9abbe3230@news.povray.org>
Thanks for the info guys :-))

Cheers

Neelakantan


Post a reply to this message

<<< Previous 2 Messages Goto Initial 10 Messages

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