POV-Ray : Newsgroups : povray.unofficial.patches : Hgpovray38, current state : Re: Hgpovray38, current state Server Time
11 May 2024 06:14:49 EDT (-0400)
  Re: Hgpovray38, current state  
From: Mr
Date: 9 Jun 2020 14:55:00
Message: <web.5edfd9cab933d8376adeaecb0@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> "Mr" <mauriceraybaud [at] hotmail dot fr>> wrote:
> > "jr" <cre### [at] gmailcom> wrote:
> > > "Mr" <mauriceraybaud [at] hotmail dot fr>> wrote:
> > > > ...  I can't afford to not be cross platform
> > >
> > > you know that POV-Ray builds, you know that Hg is derived from the same sources.
> > >  it would be a lot of work, but if you worked through the differences in the
> > > sources, perhaps aided by single-stepping (with debugger) through POV-Ray
> > > execution, you could (likely) find out exactly what
> > > 'Get_Token_String(CYLINDER_TOKEN)' returns, and what else matters at that point
> > > in the code.  sorry to be of little/no help.
> >
> > I had tried but could not find 'Get_Token_String(CYLINDER_TOKEN)' used in the
> > same context in POV-Ray trunk source, I may have searched wrong.
> > Just trying to help would already be a lot! besides I do have the impression
> > that you did unlock a few a step forwards. thanks !
>
> thanks for the .. vote of confidence.  (flattery will get you anywhere..  :-))
>
> I've created two 'tags' files with the symbols/names used in the sources.
> searching them for 'Get_Token' gives me:
>
> jr@swift:1:tmp$ xzgrep -n Get_Token hg_tags.xz
> 46500:Get_Token
> povray-3.8.0.alpha-Hg.226.Bigarade/source/parser/parser_tokenizer.cpp 317;" f
> class:pov_parser::Parser
> 46501:Get_Token_String
> povray-3.8.0.alpha-Hg.226.Bigarade/source/parser/parser_tokenizer.cpp 1701;" f
> class:pov_parser::Parser
> jr@swift:2:tmp$ xzgrep -n Get_Token pov_tags.xz
> 45379:Get_Token povray-3.8.0-alpha.10064268/source/parser/parser_tokenizer.cpp
> 210;" f class:pov_parser::Parser
> 45380:Get_Token_String
> povray-3.8.0-alpha.10064268/source/parser/parser_tokenizer.cpp 877;" f
> class:pov_parser::Parser
> jr@swift:3:tmp$
>
> you can download the listings from here:
>
> <https://drive.google.com/file/d/10RaLHKnogRE6ikkiaybHMP4d8ezyZfH9/view?usp=sharing>
> <https://drive.google.com/file/d/10ThvgvOXlnSnHJrlAVdiV1UF1fcRpAIZ/view?usp=sharing>
>
> they're about 20M each, so I have used 'xz' to compress, you can use 'WinRAR' to
> uncompress if you don't have an 'unxz' installed.
>
>
> regards, jr.
>
> (reply via email if you feel this discussion is a bit off-topic)


The solution from this page seems to bring me a step further:
https://stackoverflow.com/questions/33423502/expression-did-not-evaluate-to-a-constant-c

so...
char tmp_compound[4+strlen(Get_Token_String(CYLINDER_TOKEN))];
becomes
char* tmp_compound = new char[4+strlen(Get_Token_String(CYLINDER_TOKEN))];

Now I'm left with new lnk errors of "unresolved external symbols"(?) in
povcore64d.lib(tracepixel.obj)


Post a reply to this message

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