[Cs3] simplifying compiler invocation in unix

Mikhail Nesterenko mikhail at cs.kent.edu
Wed Jun 11 14:22:03 EDT 2014


CS3 students,

Those who develop their code in Unix, typing the option for C++11
compliance may get tedious. Here is what I put in my ~/.bashrc file:

    alias c++="clang++ -std=c++11"

This way, when I type:

     c++ filename.cpp

The proper compiler with proper options is invoked. Do not forget to
execute
	. .bashrc
After you made modifications to it. For more expensive customizations,
you might consider using Makefile.

Thanks,
-- 
Mikhail


More information about the cs3 mailing list