I'm trying to build a static library of PDFium on LInux for another project, but when I link it there's a ton of link errors.
/data/home/irisyfbao/repo/pdfiumgo/third_party/pdfium/lib/libpdfium.a(t1.o): In function `opj_lrintf':
./../third_party/libopenjpeg20/opj_includes.h:176: undefined reference to `lrintf'
/data/home/irisyfbao/repo/pdfiumgo/third_party/pdfium/lib/libpdfium.a(cpwl_cbbutton.o): In function `CPWL_CBButton::~CPWL_CBButton()':
./../fpdfsdk/pwl/cpwl_cbbutton.cpp:20: undefined reference to `operator delete(void*)'
/data/home/irisyfbao/repo/pdfiumgo/third_party/pdfium/lib/libpdfium.a(cpwl_cblistbox.o): In function `CPWL_CBListBox::~CPWL_CBListBox()':
./../fpdfsdk/pwl/cpwl_cblistbox.cpp:21: undefined reference to `operator delete(void*)'
/data/home/irisyfbao/repo/pdfiumgo/third_party/pdfium/lib/libpdfium.a(cpwl_sbbutton.o): In function `CPWL_SBButton::~CPWL_SBButton()':
./../fpdfsdk/pwl/cpwl_sbbutton.cpp:23: undefined reference to `operator delete(void*)'
/data/home/irisyfbao/repo/pdfiumgo/third_party/pdfium/lib/libpdfium.a(cfx_seekablestreamproxy.o): In function `CFX_SeekableStreamProxy::~CFX_SeekableStreamProxy()':
./../core/fxcrt/cfx_seekablestreamproxy.cpp:132: undefined reference to `operator delete(void*)'
/data/home/irisyfbao/repo/pdfiumgo/third_party/pdfium/lib/libpdfium.a(cfx_xmlchardata.o): In function `CFX_XMLCharData::~CFX_XMLCharData()':
./../core/fxcrt/xml/cfx_xmlchardata.cpp:14: undefined reference to `operator delete(void*)'
/data/home/irisyfbao/repo/pdfiumgo/third_party/pdfium/lib/libpdfium.a(cfx_xmlchardata.o): In function `std::__1::__unique_if<CFX_XMLCharData>::__unique_single std::__1::make_unique<CFX_XMLCharData, fxcrt::WideString const&>(fxcrt::WideString const&)':
./../buildtools/third_party/libc++/trunk/include/memory:2006: undefined reference to `operator new(unsigned long)'
/data/home/irisyfbao/repo/pdfiumgo/third_party/pdfium/lib/libpdfium.a(cfx_xmlinstruction.o): In function `CFX_XMLInstruction::~CFX_XMLInstruction()':
./../core/fxcrt/xml/cfx_xmlinstruction.cpp:16: undefined reference to `operator delete(void*)'
/data/home/irisyfbao/repo/pdfiumgo/third_party/pdfium/lib/libpdfium.a(cfx_xmlinstruction.o): In function `std::__1::__unique_if<CFX_XMLInstruction>::__unique_single std::__1::make_unique<CFX_XMLInstruction, fxcrt::WideString const&>(fxcrt::WideString const&)':
./../buildtools/third_party/libc++/trunk/include/memory:2006: undefined reference to `operator new(unsigned long)'
/data/home/irisyfbao/repo/pdfiumgo/third_party/pdfium/lib/libpdfium.a(cfx_xmlinstruction.o): In function `void std::__1::advance<fxcrt::WideString*, unsigned long>(fxcrt::WideString*&, unsigned long)':
./../buildtools/third_party/libc++/trunk/include/iterator:695: undefined reference to `std::__1::__libcpp_debug_function'
Anyone knows how to solve the issue? Thanks.