Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6121401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:46:47+00:00 2026-05-23T15:46:47+00:00

I have very strange errors with Xcode 3.2.6 and Xcode 4. Xcode 3.2.5 does

  • 0

I have very strange errors with Xcode 3.2.6 and Xcode 4.

Xcode 3.2.5 does not have the errors in my project.

Symbol hidden by defaults option is set to YES.

These link errors are related to static members (pointers) inside template classes.
Any ideas, compiler/linker keys to check, anything?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T15:46:48+00:00Added an answer on May 23, 2026 at 3:46 pm

    This has to do with symbol visibility in the libraries you have compiled. The GCC 4.0 switch -fvisibility=hidden option is intended to hide symbols for DSO/shared object libraries to reduce link/load times. However, I have seen some blogs online using the switch in some peculiar manner when compiling static libraries. I haven’t actually been able to find out what the effect or intent of this is. To the best of my knowledge, static libraries need symbol information exposed for functions you intend to use from the outside.

    I experienced this same linker error with boost::exceptions. However, in order to catch exceptions of a particular type, GCC requires type information, but that is a run-time issue. Thus, even if it compiles/links correctly, hiding symbol information in your projects is not the correct solution if you intend to catch an exception from outside the library. See Apple’s documentation:

    If your symbol uses runtime type identification (RTTI) information, exceptions, or dynamic casts for an object that is defined in another library, your symbol must be visible if it expects to handle requests initiated by the other library. For example, if you define a catch handler for a type in the C++ standard library, and you want to catch exceptions of that type thrown by the C++ standard library, you must make sure that your typeinfo object is visible.

    Source: http://developer.apple.com/library/mac/#documentation/DeveloperTools/Conceptual/CppRuntimeEnv/Articles/SymbolVisibility.html

    I actually needed to modify the exception header with the macro guards described here to get my project to compile and link: http://gcc.gnu.org/wiki/Visibility. This was neccessary even with -fvisibility=default, which makes me believe this was some sort of linker bug.

    Nevertheless, I logged a bug against Boost here: https://svn.boost.org/trac/boost/ticket/4594#comment:11

    You can find my configuration here: http://lists.boost.org/boost-users/2011/07/69251.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very strange situation. I have a large set of records to
I have this very strange issue with my MVC 2 project. Often times, I'll
I have a very strange error in my Qt project. Here is the code,
it is very strange, because this error doesn't happen all the time... I have
We have very strange problem, one of our applications is continually querying server by
I have a very strange problem. Under some elusive circumstances I fail to apply
I have a very strange problem, when I try to var_dump (or print_r )
I have a very strange problem with the Delphi 2006 IDE. If the IDE
I have a very strange behavior with Request.Form . Here are two IIS 7
I have a very strange issue on my hands. I have two IIS websites

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.