Skip to content

Compile error related to a pdfium header #9

@Ashfaaq18

Description

@Ashfaaq18

I tried compiling this project with my own makefile and got most of the cpps compiled except for one, This cpp produces the following errors

//------------------------------------ERRORS------------------------------------------//
g++ -g -Wall -I"C:\DevLibs\wxWidgets\include\wx-3.1" -I"C:\DevLibs\wxWidgets\lib\wx\include\msw-unicode-static-3.1" -I"Include" -I"C:\DevLibs\pdfium-windows-x64-v8\include" -c -o obj/PDFViewImpl.o src/PDFViewImpl.cpp
In file included from C:\DevLibs\pdfium-windows-x64-v8\include/fpdf_dataavail.h:13,
from Include/private/PDFViewImpl.h:20,
from src/PDFViewImpl.cpp:10:
C:\DevLibs\pdfium-windows-x64-v8\include/fpdfview.h:803:32: error: variable or field 'FPDF_RenderPage' declared void
803 | FPDF_EXPORT void FPDF_CALLCONV FPDF_RenderPage(HDC dc,
| ^~~~~~~~~~~~~~~
C:\DevLibs\pdfium-windows-x64-v8\include/fpdfview.h:803:48: error: 'HDC' was not declared in this scope
803 | FPDF_EXPORT void FPDF_CALLCONV FPDF_RenderPage(HDC dc,
| ^~~
C:\DevLibs\pdfium-windows-x64-v8\include/fpdfview.h:804:58: error: expected primary-expression before 'page'
804 | FPDF_PAGE page,
| ^~~~
C:\DevLibs\pdfium-windows-x64-v8\include/fpdfview.h:805:48: error: expected primary-expression before 'int'
805 | int start_x,
| ^~~
C:\DevLibs\pdfium-windows-x64-v8\include/fpdfview.h:806:48: error: expected primary-expression before 'int'
806 | int start_y,
| ^~~
C:\DevLibs\pdfium-windows-x64-v8\include/fpdfview.h:807:48: error: expected primary-expression before 'int'
807 | int size_x,
| ^~~
C:\DevLibs\pdfium-windows-x64-v8\include/fpdfview.h:808:48: error: expected primary-expression before 'int'
808 | int size_y,
| ^~~
C:\DevLibs\pdfium-windows-x64-v8\include/fpdfview.h:809:48: error: expected primary-expression before 'int'
809 | int rotate,
| ^~~
C:\DevLibs\pdfium-windows-x64-v8\include/fpdfview.h:810:48: error: expected primary-expression before 'int'
810 | int flags);
| ^~~
mingw32-make: *** [Makefile:48: obj/PDFViewImpl.o] Error 1
//------------------------------------ERRORS------------------------------------------//

The errors are under the pdfium header fpdfview.h. The pdfium binaries I used are the chromium/4194 version from the pdfium binaries you've linked. Any idea on what to do? happy to give more info on request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions