我试图运行一个项目,使用waf
它使用boost
library 。为了克服一个问题,我需要将-DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED
参数传递给MOC
. 我尝试在wscript
as中这样做
bld(features ='cxx',
source ='GSTEngine.cpp',
target = 'GSTEngine.o',
includes = qtinc+gstinc+taginc,use=['BOOST'],
uselib = qtlibs,
cxxflags = ['-DQT_NO_KEYWORDS','-DBOOST_TT_HAS_OPERATOR_HPP_INCLUDED'])
但它失败了。如何将参数传递给MOC
using waf
?