POV-Ray : Newsgroups : povray.newusers : Parse Error in Stones1.inc Server Time
24 Nov 2024 23:52:45 EST (-0500)
  Parse Error in Stones1.inc (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: neelakantankk
Subject: Parse Error in Stones1.inc
Date: 24 Mar 2007 04:50:01
Message: <web.4604f30532f391763533adc80@news.povray.org>
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


Post a reply to this message

From: Stephen
Subject: Re: Parse Error in Stones1.inc
Date: 24 Mar 2007 05:35:28
Message: <1mv903thd98ra8l69jh41geik2eed2vlmm@4ax.com>
On Sat, 24 Mar 2007 04:47:45 EST, "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


You are getting that error because stones1.inc is calling a variable called
"White" which can be found in "colors.inc"

So in your pov file you need to have this line as well 
#include "colors.inc"

Regards
	Stephen


Post a reply to this message

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

Goto Latest 10 Messages Next 2 Messages >>>

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