You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a handful of errors when I try to compile. I've reproduced them below:
g++ -Wall -O3 -c -o pdf_document.o pdf_document.cpp
In file included from pdf_document.cpp:22:0:
pdf_document.hpp:111:3: error: 'fz_bbox' does not name a type
pdf_document.cpp: In member function 'virtual const Document::PageSize PDFDocument::GetPageSize(int, float, int)':
pdf_document.cpp:74:9: error: 'fz_bbox' does not name a type
pdf_document.cpp:76:19: error: 'bbox' was not declared in this scope
pdf_document.cpp: In member function 'virtual void PDFDocument::Render(Document::PixelWriter_, int, float, int)':
pdf_document.cpp:122:9: error: 'fz_bbox' does not name a type
pdf_document.cpp:123:75: error: 'bbox' was not declared in this scope
pdf_document.cpp:128:56: error: cannot convert 'const fz_matrix' to 'const fz_matrix_ {aka const fz_matrix_s_}' for argument '4' to 'void pdf_run_page(pdf_document_, pdf_page_, fz_device_, const fz_matrix_, fz_cookie_)'
pdf_document.cpp: In member function 'fz_matrix PDFDocument::Transform(float, int)':
pdf_document.cpp:252:39: error: cannot convert 'float' to 'fz_matrix* {aka fz_matrix_s_}' for argument '1' to 'fz_matrix_ fz_scale(fz_matrix_, float, float)'
pdf_document.cpp:253:38: error: invalid conversion from 'int' to 'fz_matrix_ {aka fz_matrix_s_}' [-fpermissive]
pdf_document.cpp:253:38: error: too few arguments to function 'fz_matrix_ fz_rotate(fz_matrix_, float)'
In file included from /usr/include/mupdf.h:4:0,
from pdf_document.hpp:28,
from pdf_document.cpp:22:
/usr/include/fitz.h:957:12: note: declared here
pdf_document.cpp: At global scope:
pdf_document.cpp:257:1: error: 'fz_bbox' does not name a type
pdf_document.cpp: In member function 'virtual const Document::PageSize PDFDocument::GetPageSize(int, float, int)':
pdf_document.cpp:77:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *_* [pdf_document.o] Error 1
The text was updated successfully, but these errors were encountered:
I'm getting a handful of errors when I try to compile. I've reproduced them below:
g++ -Wall -O3 -c -o pdf_document.o pdf_document.cpp
In file included from pdf_document.cpp:22:0:
pdf_document.hpp:111:3: error: 'fz_bbox' does not name a type
pdf_document.cpp: In member function 'virtual const Document::PageSize PDFDocument::GetPageSize(int, float, int)':
pdf_document.cpp:74:9: error: 'fz_bbox' does not name a type
pdf_document.cpp:76:19: error: 'bbox' was not declared in this scope
pdf_document.cpp: In member function 'virtual void PDFDocument::Render(Document::PixelWriter_, int, float, int)':
pdf_document.cpp:122:9: error: 'fz_bbox' does not name a type
pdf_document.cpp:123:75: error: 'bbox' was not declared in this scope
pdf_document.cpp:128:56: error: cannot convert 'const fz_matrix' to 'const fz_matrix_ {aka const fz_matrix_s_}' for argument '4' to 'void pdf_run_page(pdf_document_, pdf_page_, fz_device_, const fz_matrix_, fz_cookie_)'
pdf_document.cpp: In member function 'fz_matrix PDFDocument::Transform(float, int)':
pdf_document.cpp:252:39: error: cannot convert 'float' to 'fz_matrix* {aka fz_matrix_s_}' for argument '1' to 'fz_matrix_ fz_scale(fz_matrix_, float, float)'
pdf_document.cpp:253:38: error: invalid conversion from 'int' to 'fz_matrix_ {aka fz_matrix_s_}' [-fpermissive]
pdf_document.cpp:253:38: error: too few arguments to function 'fz_matrix_ fz_rotate(fz_matrix_, float)'
In file included from /usr/include/mupdf.h:4:0,
from pdf_document.hpp:28,
from pdf_document.cpp:22:
/usr/include/fitz.h:957:12: note: declared here
pdf_document.cpp: At global scope:
pdf_document.cpp:257:1: error: 'fz_bbox' does not name a type
pdf_document.cpp: In member function 'virtual const Document::PageSize PDFDocument::GetPageSize(int, float, int)':
pdf_document.cpp:77:1: warning: control reaches end of non-void function [-Wreturn-type]
make: *_* [pdf_document.o] Error 1
The text was updated successfully, but these errors were encountered: