ios - Xcode reporting duplicate symbol error when linking a SINGLE framework static library -


when linking particular ios app project static framework, xcode reporting duplicate symbol errors within single static framework file (although duplicates reported sourced different object files within framework):

duplicate symbol _kmglminimalviewport in: /users/alex/documents/code/myproject/thirdparty/metalgl-0.9.0/metalgl/metalgl.framework/metalgl(mglcontext.o) /users/alex/documents/code/myproject/thirdparty/metalgl-0.9.0/metalgl/metalgl.framework/metalgl(mglrenderpipelinestate.o) 

the _kmglminimalviewport symbol being reported duplicate struct declared , defined within header file within source code of framework:

mglpixelrect kmglminimalviewport = (mglpixelrect){0, 0, 0, 0}; 

which #imported several implementation files within framework source, including both .m files , inline functions within other .h files. symbol used strictly internally within framework , declaration not visible final app project part of visible header file.

confusingly, duplicate error not appear when linking framework other app projects, can't find reason why particular app project reporting error when linking framework.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -