2016-06-16から1日間の記事一覧

gcc でファイルからオプションを読みこむ

C++

gcc で @{filename} とすればそのファイルに書かれてるオプションをコマンド引数に追加できるみたい。 [options.gcc] -std=gnu++1y -I~/build/boost/boost_1_61_0 [test.cpp] #include <iostream> #include <boost/config.hpp> int main(){ std::cout << BOOST_COMPILER << std::endl; re</boost/config.hpp></iostream>…