-
Notifications
You must be signed in to change notification settings - Fork 42
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
newbie having an issue installing and running a test with cppyy #258
Comments
hello seemed to have found a fix from your doc: export CLING_STANDARD_PCH="none" do or should i use pch headers?? |
Setting it to As for the error itself, I think it's the limited support in Clang13 for concepts. Using |
given the EXTRA_CLING_ARGS setting mentioned above, do I have download the source and rebuild the entire project?? what would command be, or is it as in your doc 'Install from Source' + the above EXTRA* |
i entered the following 'EXTRA_CLING_ARGS='-O2 -march=native -std=c++17'' in the VS Code python termainal under the activate venv and got no errors. so i may have answered my own above question |
Yes, it's a run-time thing. PCH may need to be rebuild whenever switching args, but that's it. Aside, I pushed the first changes for LLVM16 yesterday; hopefully be done soon, after which problems like this should (famous last words) go away. |
i deleted my virtual env for python, did a complete apt-get update and upgrade and repeated all of the from the prev comments: set these as from your doc and prev comments to me: no run my code, it runs but now i get run-time errors In file included from input_line_3:2: no matter how many times i run my code, i get the above errors, which i did not get before re-doing the current python virt env. |
It doesn't look like these:
were actually set and/or propagated (not sure about the change in set/export either). Can you check on the Python prompt or within your script before importing As-is, if the standard pch is I'd add that if the only point is to change the used standard, I'd set |
hello, just started using cppyy again after a year or so.
as per you use guide the following:
running on kali linux (latest version)
ensured python3.12-dev was installed
$ python -m venv WORK
$ source WORK/bin/activate
(WORK) $ python -m pip install cppyy
(WORK) $
created a simple python file in VS code in WORK 'Test_cppyy01.py'. just contains 'import cppyy'
decided to try from out VS code, so from terminal went into WORK and could see simple python file.
ran file: 'python Test_cppyy01.py'
(Re-)building pre-compiled headers (options: -O2 -march=native); this may take a minute ...
In file included from input_line_3:2:
In file included from /usr/include/c++/14/string:42:
In file included from /usr/include/c++/14/bits/char_traits.h:57:
In file included from /usr/include/c++/14/bits/stl_construct.h:61:
In file included from /usr/include/c++/14/bits/stl_iterator_base_types.h:71:
/usr/include/c++/14/bits/iterator_concepts.h:1013:13: error: no matching function for call to '__begin'
= decltype(ranges::__access::__begin(std::declval<_Tp&>()));
100's of more error lines
any chance of telling me what i am doing wrong.
thanks
Simon
The text was updated successfully, but these errors were encountered: