Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 lua 构建为动态库目标,另一个动态库目标依赖于它。当我需要我的库时,出现错误:检测到多个 Lua VM。我通过在此处添加 -Wl,-E 链接标志在 gcc 下找到了解决方案。但是在 Xcode 中怎么做呢?
更新:我尝试使用 -weak_library 链接目标中的 lua 也捕获“检测到多个 Lua VM”错误。
您不应该将第二个动态库与 Lua 链接。将其保留为依赖项。我不确定如何在 Xcode 中表达这一点。另外,据我所知,没有必要-Wl,-E在 Mac OS X中使用。
-Wl,-E