Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issues (no match for ‘operator%’) #129

Open
axet opened this issue Feb 14, 2024 · 0 comments
Open

Build issues (no match for ‘operator%’) #129

axet opened this issue Feb 14, 2024 · 0 comments

Comments

@axet
Copy link

axet commented Feb 14, 2024

Hello!

Here is a build issues on Debian 12 (Bookworm) with default qt6 installation:

When I make, I got the following:

/media/axet/128GB/local/ArrowDL/include/../src/version.h:67:73: error: no match for ‘operator%’ (operand types are ‘QString’ and ‘QLatin1StringView’ {aka ‘QLatin1String’})
   67 | const QString STR_COMPILER_WORDSIZE{QString::number(QSysInfo::WordSize) % "-bit"_L1};
      |                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~
      |                                                    |                      |
      |                                                    QString                QLatin1StringView {aka QLatin1String}

I'm not QT expert, but I know you can concatinate strings with "%" operator, but it fails for some reason. If I prelace all "%" with "+" compilation works, but failed later...

Can you clarify build dependencies / build.md page or fix build scripts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant