POV-Ray : Newsgroups : povray.beta-test : POV-Ray v3.8.0 experimental versions : Re: POV-Ray v3.8.0 experimental versions Server Time
3 Dec 2021 02:59:07 EST (-0500)
  Re: POV-Ray v3.8.0 experimental versions  
From: Le Forgeron
Date: 19 Feb 2019 13:05:55
Message: <5c6c4583$1@news.povray.org>
Le 19/02/2019 à 11:09, clipka a écrit :
> Updated version of the experimental features branch:
> https://github.com/POV-Ray/povray/releases/tag/v3.8.0-x.10064738
> Updated version of the semi-experimental branch using the new TrueType
> implementation:
> https://github.com/POV-Ray/povray/releases/tag/v3.8.0-x.freetype.3
> Both branches already incldue the fix for Unix/SDL builds.

For the freetype, I now get:

for gnu compiler, disp_sdl.cpp is failing with min(), suggesting
std::min() (same for max / std::max)

g++ -DHAVE_CONFIG_H -I. -I..  -I../unix/povconfig -I.. -I../source
-I../source -I../platform/unix -I../platform/x86 -I../vfe -I../vfe/unix
-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/freetype2
-I/usr/include/libpng16 -I/usr/include/OpenEXR   -I/usr/include  -pipe
-Wno-multichar -Wno-write-strings -fno-enforce-eh-specs
-Wno-non-template-friend -Wsuggest-override -s -O3 -ffast-math
-march=native -pthread -MT disp_text.o -MD -MP -MF $depbase.Tpo -c -o
disp_text.o disp_text.cpp &&\
mv -f $depbase.Tpo $depbase.Po
disp_sdl.cpp:57:12: error: ‘shared_ptr’ does not name a type; did you
mean ‘char16_t’?
     extern shared_ptr<Display> gDisplay;
disp_sdl.cpp:458:28: error: ‘min’ was not declared in this scope
         unsigned int ix1 = min(x1, GetWidth()-1);

Same issue for clang compiler, but less smart ?

disp_sdl.cpp:57:12: error: no template named 'shared_ptr'
    extern shared_ptr<Display> gDisplay;
disp_sdl.cpp:184:29: error: use of undeclared identifier 'min'; did you
mean 'fmin'?
                    width = min(modes[0]->w - 10, width);

g++ : 8.2
clang++ : 7.0

About shared_ptr, can it also be a namespace problem (std::shared_ptr) ?

Post a reply to this message

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