Tomasu / LuaGlue

C++11 Lua 5.2 Binding Library
zlib License
79 stars 22 forks source link

Duplicate Symbols on XCode. #45

Closed PhilCK closed 10 years ago

PhilCK commented 10 years ago

I have an issue where XCode spews out loads of 'duplicate symbols' for 'LuaGlue::getGlobal's.

I'm unsure why, as my early LuaGlue tests where done with clang++ and a makefile without issue.

I don't know if its a legitimate (I say that as I'm still have a few issues.) but I inlined all the getGlobal methods and it seems to have solved those issues.

XCode Lua as C++ (not as library)

PhilCK commented 10 years ago

Just to say my other issues, where when I wrapped a state in another object then used then made a copy of that object, so I doubt that has todo with the duplicate symbols.

Tomasu commented 10 years ago

Hm, are you saying that Using more than one LuaGlue object causes duplicate symbols? Or is that not related to the non inlined getGlobals?

Tomasu commented 10 years ago

I've committed a fix for the inline issue.