On Thursday, 27 January 2022 13.52.56 WET Jean-Marc Lasgouttes wrote:
> This one is a warning, but you cut part of it out.

For complete sake the complete diagnose (warnings and errors) is here:

make[4]: Entering directory '/builddir/build/BUILD/lyx-2.3.6.1/src'
g++ -DHAVE_CONFIG_H -I. -I..  -I../src    -I/usr/include/enchant 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 
-pthread  -I/usr/include/hunspell   -DQT_NO_STL -DQT_NO_KEYWORDS -DQT_CORE_LIB 
-I/usr/include/qt5/QtCore -I/usr/include/qt5   -fPIC -O2 -flto=auto 
-ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall 
-Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic 
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection 
-std=c++14  -std=c++14  -O2 -flto=auto -ffat-lto-objects -fexceptions -g 
-grecord-gcc-switches -pipe -Wall -Werror=format-security 
-Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS 
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic 
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c -o 
lyxfind.o lyxfind.cpp
lyxfind.cpp: warning: -D_FORTIFY_SOURCE not defined
annobin: lyxfind.cpp: Warning: -D_GLIBCXX_ASSERTIONS not defined
lyxfind.cpp:73:28: warning: 'template<class _Arg1, class _Arg2, class _Result> 
struct std::binary_function' is deprecated [-Wdeprecated-declarations]
   73 | class MatchString : public binary_function<Paragraph, pos_type, int>
      |                            ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/12/string:48,
                 from support/strfwd.h:42,
                 from lyxfind.h:19,
                 from lyxfind.cpp:17:
/usr/include/c++/12/bits/stl_function.h:131:12: note: declared here
  131 |     struct binary_function
      |            ^~~~~~~~~~~~~~~
lyxfind.cpp: In function 'bool lyx::{anonymous}::regex_replace(const 
std::string&, std::string&, const std::string&, const std::string&)':
lyxfind.cpp:677:9: error: 'ostream_iterator' was not declared in this scope
  677 |         ostream_iterator<char, char> it(oss);
      |         ^~~~~~~~~~~~~~~~
lyxfind.cpp:55:1: note: 'std::ostream_iterator' is defined in header 
'<iterator>'; did you forget to '#include <iterator>'?
   54 | #include "support/regex.h"
  +++ |+#include <iterator>
   55 | 
lyxfind.cpp:677:26: error: expected primary-expression before 'char'
  677 |         ostream_iterator<char, char> it(oss);
      |                          ^~~~
lyxfind.cpp:678:28: error: 'it' was not declared in this scope; did you mean 
't'?
  678 |         lyx::regex_replace(it, s.begin(), s.end(), e, replacestr);
      |                            ^~
      |                            t
-- 
José Abílio
-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to