-
Notifications
You must be signed in to change notification settings - Fork 605
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
Support for GCC14 & GCC15 in the cpp images #1280
Comments
Thank you for the feedback! I wonder if @sinemakinci1 has any thoughts on this? :) |
@gldraphael @bamurtaugh Thanks for forwarding, I think this is a very valid request if feasible, as there are some C++ features that require min GCC 14 or 15 to be able to compile (see: https://en.cppreference.com/w/cpp/compiler_support/23)! |
Thanks so much for the feedback! |
Hi @gldraphael , As you would be knowing, the c++ devcontainer image is currently available with two different OS flavors, ubuntu & debian. For ubuntu noble (24.04) the default available gcc version is 13.3.0. However gcc-14 package is indeed available for installation. For debian bookworm (12) the default available gcc version is 12.2.0. Also gcc-13 onwards aren't natively available in debian 12 for installation. Please note gcc-15 doesn’t appear to be supported in either ubuntu noble or debian bookworm for the moment. I will check further on making gcc-14 available as part of ubuntu noble flavor of c++ devcontainer image & also check the possibility of allowing the user to choose gcc version in this image. I will keep you posted further on the progress. Please let me know in case of any further concern/ clarification on this topic. With Regards, |
I understand that the GCC versions available are currently tightly coupled to the chosen OS's standard PPA repositories. However, the latest compiler could always be made available via other means such as installing by source. Consider the .NET devcontainer for example, it's very convenient to be able to specify the .NET version I need to develop .NET apps. This is also true for other container that I have used so far eg. python, TypeScript, etc. When I tried this devcontainer, I was more interested in experimenting with the latest C++ features supported by the latest g++ compiler. While it's easy to install a specific version of CMAKE using a script included in the template, there's currently no way to specify the version of GCC I'd like to use. |
It would be very nice if we could specify a GCC version for the existing images similar to how we can currently specify a CMAKE version. But just having access to only the latest GCC would be nice too, since many of the newer C++ features (like
println
from theprint
header) are not supported in GCC13.The text was updated successfully, but these errors were encountered: