-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
$ make
make all-recursive
make[1]: Entering directory '/home/data1/protected/Programming/git/paps'
Making all in src
make[2]: Entering directory '/home/data1/protected/Programming/git/paps/src'
g++ -DHAVE_CONFIG_H -I. -I.. -DGETTEXT_PACKAGE='"paps"' -DDATADIR='"/package/tools/paps/share"' -pthread -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -g -O2 -MT paps-paps.o -MD -MP -MF .deps/paps-paps.Tpo -c -o paps-paps.o `test -f 'paps.cc' || echo './'`paps.cc
In file included from paps.cc:42:
format_from_dict.h:30:23: error: ‘variant’ in namespace ‘std’ does not name a template type
30 | using scalar_t = std::variant<int, std::string, double, std::time_t>;
| ^~~~~~~
format_from_dict.h:30:18: note: ‘std::variant’ is only available from C++17 onwards
30 | using scalar_t = std::variant<int, std::string, double, std::time_t>;
| ^~~
format_from_dict.h:31:38: error: ‘scalar_t’ was not declared in this scope
31 | using dict_t = std::map<std::string, scalar_t>;
| ^~~~~~~~
format_from_dict.h:31:46: error: template argument 2 is invalid
31 | using dict_t = std::map<std::string, scalar_t>;
| ^
format_from_dict.h:31:46: error: template argument 4 is invalid
format_from_dict.h:36:30: error: ‘dict_t’ has not been declared
36 | dict_t dict);
| ^~~~~~
paps.cc:160:3: error: ‘dict_t’ does not name a type; did you mean ‘wint_t’?
160 | dict_t document_info;
| ^~~~~~
| wint_t
paps.cc:221:45: error: ‘dict_t’ has not been declared
221 | dict_t& document_info,
| ^~~~~~
paps.cc:227:45: error: ‘dict_t’ has not been declared
227 | dict_t& document_info);
| ^~~~~~
paps.cc: In function ‘int output_pages(cairo_surface_t*, cairo_t*, GList*, PageLayout*, PangoContext*)’:
paps.cc:1396:3: error: ‘dict_t’ was not declared in this scope; did you mean ‘wint_t’?
1396 | dict_t document_info;
| ^~~~~~
| wint_t
paps.cc:1399:36: error: ‘document_info’ was not declared in this scope; did you mean ‘build_document_info’?
1399 | build_document_info(page_layout, document_info);
| ^~~~~~~~~~~~~
| build_document_info
paps.cc: At global scope:
paps.cc:1700:31: error: ‘dict_t’ has not been declared
1700 | dict_t& document_info,
| ^~~~~~
paps.cc:1841:21: error: ‘dict_t’ has not been declared
1841 | dict_t& document_info)
| ^~~~~~
paps.cc: In function ‘void build_document_info(PageLayout*, int&)’:
paps.cc:1843:29: error: assignment of read-only location ‘"filename"[document_info]’
1843 | document_info["filename"] = page_layout->filename;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
paps.cc:1844:25: error: assignment of read-only location ‘"path"[document_info]’
1844 | document_info["path"] = page_layout->filename_path;
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
paps.cc:1848:26: error: assignment of read-only location ‘"mtime"[document_info]’
1848 | document_info["mtime"] = (time_t)stat_buf.st_mtime;
| ^
paps.cc:1849:24: error: assignment of read-only location ‘"now"[document_info]’
1849 | document_info["now"] = time(nullptr);
| ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
paps.cc:1851:16: error: ‘struct PageLayout’ has no member named ‘document_info’
1851 | page_layout->document_info["num_pages"] = page_layout->num_pages;
| ^~~~~~~~~~~~~
make[2]: *** [Makefile:451: paps-paps.o] Error 1
make[2]: Leaving directory '/home/data1/protected/Programming/git/paps/src'
make[1]: *** [Makefile:499: all-recursive] Error 1
make[1]: Leaving directory '/home/data1/protected/Programming/git/paps'
make: *** [Makefile:384: all] Error 2
Metadata
Metadata
Assignees
Labels
No labels