Adding/switching to C++14/C++17 on 1.4rc1

108 views
Skip to first unread message

Madhavan Mukund

unread,
Mar 29, 2021, 1:09:44 AM3/29/21
to contestm...@googlegroups.com
I'm running 1.4.rc1 using a virtual environment.

By default, g++ is installed with C++11 support, compiler flag -std=gnu++11. I'd like to add/replace this with C++14/C++17 support, compiler flags -std=gnu++14/-std=gnu++17.

Under cms/build/lib/cms/grading/languages, I tried copying cpp11_gpp.py as cpp14_gpp.py and cpp17_gpp.py, editing the files approprirate, and then rerunning "python3 setup.py install". However, I don't see any change in the set of "Allowed programming languages".

(a) What should I do to enable C++14/C++17?

(b) Is it possible to have multiple C++ compilers simultaneously configured/enabled in a contest?

--Madhavan
signature.asc

William Di Luigi

unread,
Mar 29, 2021, 5:55:51 AM3/29/21
to Madhavan Mukund, Contest Management System (support)
Hi Madhavan,



(b) Yes, as far as I remember, C++11 / 14 / 17 are seen as completely different languages by CMS.

Best,
William

--
You received this message because you are subscribed to the Google Groups "Contest Management System (support)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to contestms-supp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/contestms-support/20210329050935.c3z6r6y6fxnnrfd2%40cmi.ac.in.

Madhavan Mukund

unread,
Apr 5, 2021, 11:13:28 AM4/5/21
to William Di Luigi, Contest Management System (support)
Thanks, I was able to patch 1.4rc1 with these updates and get both C++14 and C++17 working. (Didn't migrate to latest dev version of cms because I did not want to upgrade the existing large database of problems.)

Regards,
Madhavan
signature.asc
Reply all
Reply to author
Forward
0 new messages