Code Monkey home page Code Monkey logo

Comments (6)

nbouras avatar nbouras commented on June 17, 2024 1

For future reference, adding -DUCHAR_TYPE=wchar_t would solve this. For details read the umachine.h.

/**

  • \var UChar
  • The base type for UTF-16 code units and pointers.
  • Unsigned 16-bit integer.
  • Starting with ICU 59, C++ API uses char16_t directly, while C API continues to use UChar.
  • UChar is configurable by defining the macro UCHAR_TYPE
  • on the preprocessor or compiler command line:
  • -DUCHAR_TYPE=uint16_t or -DUCHAR_TYPE=wchar_t (if U_SIZEOF_WCHAR_T==2) etc.
  • (The UCHAR_TYPE can also be #defined earlier in this file, for outside the ICU library code.)
  • This is for transitional use from application code that uses uint16_t or wchar_t for UTF-16.
  • The default is UChar=char16_t.
  • C++11 defines char16_t as bit-compatible with uint16_t, but as a distinct type.
    ...

from pdfalto.

Aazhar avatar Aazhar commented on June 17, 2024

Hello,
Concerning the first part, it actually depends on the gcc version you have (and the value of its include parameter), the update have solved the issue but it was not the reason, so yes maybe it's related to icu. fyi the c++ standard is updated to 11 to support last needed changes.

As I commented in XPDF repository, libpaper is not mandatory.

from pdfalto.

wehlutyk avatar wehlutyk commented on June 17, 2024
$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-pc-linux-gnu/8.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --enable-default-pie --enable-default-ssp
Thread model: posix
gcc version 8.1.0 (GCC)

I'm no C++ expert, but as far as I understand char16_t appeared as a type in C++11, and icu 61 seems to use it. So unless you specify that this shouldn't build with icu 61, then pdfalto also needs C++11, which is what the fix I was suggesting does. What other problem could it be?

from pdfalto.

Aazhar avatar Aazhar commented on June 17, 2024

Ok that's right, because you've installed icu 61 you needed c++11 standard, anyway it's updated to use C++11 standard since it was needed for another purpose for pdfalto.

from pdfalto.

Aazhar avatar Aazhar commented on June 17, 2024

Hello,
Could you close this issue please ?

from pdfalto.

wehlutyk avatar wehlutyk commented on June 17, 2024

Thanks for the fix!

from pdfalto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.