开发者

Preprocessor definition / defined symbol, depending on (or inherited from) solution instead of project?

In vs2008's project settings you can define custom symbols, such as DEBUG or WIN32.

The thing is: I am using one project (a static library) in different solutions, and I'd like to build the same vcproj with a different predefined开发者_开发知识库 symbol in each solution.

Is there some way to define a 'solution-wide symbol'? Or can I somehow have a project inherit preprocessor defines from solution level or anything?


Solutions don't have user-settable properties quite like that. But it is possible to get the effect you want, as was explained in the answers to this previous StackOverflow question on the same topic, "Can you make a VC++ Solution set preprocessor #defines on loaded projects?"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜