You are not logged in.
Pages: 1
How can I install a C++ compiler version different to the one from my OS?
It is well known that changing the OS compiler leads to system issues. What I want is to install a C++ compiler version independent from the one in my system.
Last edited by ninioArg (2024-03-30 23:51:58)
Offline
https://wiki.archlinux.org/title/GNU_Co … d_versions
But I smell https://xyproblem.info
Why do you want to do that? What's your actual end goal?
Last edited by V1del (2024-03-30 20:56:57)
Offline
https://wiki.archlinux.org/title/GNU_Co … d_versions
But I smell https://xyproblem.info
Why do you want to do that? What's your actual end goal?
Hi V1del,
Thanks for answering. The point is I need to experiment with new experimental language features, only present on the last version of the compiler.
Offline
The point is I need to experiment with new experimental language features, only present on the last version of the compiler.
What experimental language features? Which compiler do yo need to experiment with? What happens when you when you try and use the features on the current compiler?
Offline
What experimental language features? Which compiler do yo need to experiment with? What happens when you when you try and use the features on the current compiler?
Right now, Modules, but there are others down the road. I need to experiment with C++20 and C++23 standards. If I try with the one on my system, it just fails at compiling, as you can expect.
I'm interested in having another compiler available in my system, other than the system one. I understand this is the scenario I need for what I will be working on.
Last edited by ninioArg (2024-03-30 23:55:24)
Offline
Take one of the "old version" PKGBUILDs as examples for how you can store the compiler in a different prefix, or just build it and run it from a local dir or so, without installing it into the rest of the system. But case in point, modules are going to be implemented in current GCC13, basically everything before C++23 should be working in the current version.
Offline
Take one of the "old version" PKGBUILDs as examples for how you can store the compiler in a different prefix, or just build it and run it from a local dir or so, without installing it into the rest of the system. But case in point, modules are going to be implemented in current GCC13, basically everything before C++23 should be working in the current version.
Thanks for your input, V1del.
Offline
Pages: 1