I hv solved my problem , it is because I have installed wxpropgrid using the setup file from the wxpropgrid website to study the example to add in bitmap support in wxSmith last time.
the wxpropgrid is installed in the $(#WX.include) therefore , when compile , it includes the wrong version of include file.