且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用scons用-std = c ++ 11标志编译c ++文件

更新时间:2022-12-25 09:12:26

Use env.Library instead of Library to build the library with your construction environment.

env = Environment()
env.Append(CXXFLAGS = '-std=c++11')

src_files = Split('test.cc')
lib_name = 'test'

env.Library(lib_name, src_files)

相关阅读

技术问答最新文章