boost build - sources with the same name

你说的曾经没有我的故事 提交于 2019-12-11 01:17:56

问题


src
  |--Manager.cpp
  |--Specializations
  |    |--Manager.cpp

Building this Boost.Build tries to create

/bin/...
  |--Manager.o
  |--Manager.o

but fails. How to resolve this automatically? I read FAQ item, but I don't like the solution, as I have to fix things manually when I have a same class name, but different namespace. Would it be possible to make Boost.Build automatically prefix object file names with directory?

/bin/...
  |--Manager.o
  |--Specializations.Manager.o

Or duplicate the source directory tree?

/bin/...
  |--Manager.o
  |--Specializations
  |    |--Manager.o

回答1:


This behavior has been changed a long time ago and should just work. Boost.Build now mimics the source structure, i.e. you should get both bin/Manager.o and bin/Specializations/Manager.o.



来源:https://stackoverflow.com/questions/11599986/boost-build-sources-with-the-same-name

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!