<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Feb 28, 2011, at 8:07 PM, Félix Cloutier wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">I'm using Xcode 3 to program with LLVM and Clang (both about yesterday's latest revisions), and when I compile, I get 1501 link-time warnings. All those I read were about symbol visibility. Here's an example:<div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 12px; text-indent: -12px; font: normal normal normal 11px/normal Menlo; ">ld: warning: <i>namespace::class::method()</i> has different visibility (default) in /usr/local/lib/libclangCodeGen.a(CodeGenAction.o) and (hidden) in /Users/myself/Projets/path/build/project.build/Debug/project.build/Objects-normal/x86_64/object.o</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 12px; text-indent: -12px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><br></div><div style="text-align: left;margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 12px; text-indent: -12px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: medium; ">1501 seems large enough that it could simply be all symbols referenced from the static libraries. It works anyways though.</span></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 12px; text-indent: -12px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: medium; "></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 12px; text-indent: -12px; font: normal normal normal 11px/normal Menlo; min-height: 13px; "><span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: medium; ">What am I doing wrong? As usual with stuff causing spectacular diagnostics, I must be missing something fairly elementary.</span></div></div></blockquote><br></div><div>Hi Félix,</div><div><br></div><div>The most likely cause of this is that you're building some llvm code with -fvisibility-inlines-hidden. Xcode likes to add this flag by default, you can change it in the target build options.</div><div><br></div><div>-Chris</div><br></body></html>