• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: bug in gcc 4.0.1? ld: duplicate symbol typeinfo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bug in gcc 4.0.1? ld: duplicate symbol typeinfo


  • Subject: Re: bug in gcc 4.0.1? ld: duplicate symbol typeinfo
  • From: Xochitl Lunde <email@hidden>
  • Date: Thu, 12 Feb 2009 19:08:16 -0600



> Luis,
>
> Instead of going backwards, and trying Xcode 2.5, why not go forwards
> and change from Xcode 3.0 to 3.1.2?  Xcode 3.1.2 comes with 3 compilers:
>
> /usr/bin/gcc-4.2
> /usr/bin/gcc
> /Developer/usr/bin/llvm-gcc-4.2
>
> Try them all.
>


At first I tried going to gcc 4.4 but that did not help either. That is why I tried going backward. Again, the suspected definitions:  

> It seems that lines like the following trigger this error:
> #if !defined (AGENTPP_DECL_TEMPL_OIDLIST_MIBGROUP)
> #define AGENTPP_DECL_TEMPL_OIDLIST_MIBGROUP
>    AGENTPP_DECL_TEMPL template class AGENTPP_DECL OidList<MibGroup>;
> #endif


Just a few minutes after my last update on this list, an Agent++ list member (admiN?) posted a new suggestion about this:

> did you try to comment out the template declarations?
> #ifdef __APPLE__
> #define AGENTPP_DECL_TEMPL_OIDLIST_MIBENTRY
> #define AGENTPP_DECL_TEMPL_OIDLIST_MIBGROUP

(...)
> #endif

I tried this out, and this seems to initially have solved the problem for my build of this particular library.  Setting these definitions to empty macros does the trick, at least as far as removing the initial linker error.  Sadly, I don't believe this information will help any of the other users who were getting the error with their other software.  (I post results anyway for archival-completeness as I don't like leaving future readers wondering if the solution was ever found... )

Anyone looking to discover more will find the original definitions for AGENTPP_DECL_TEMPL and AGENTPP_DECL in the 'agent++/include/agent_pp/agent++.h' file of AGENT++ at www.agentpp.com (Sorry, although this software is free for personal use, I don't think the license allows me to post very much of the exact code.)  The definitions are blank on Linux-based systems but appear to do something different for Win32.

Thank you everyone for your thoughts on this.  I'll be sure to post if I learn more on what else would generally cause this linker error.

Xochitl
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: bug in gcc 4.0.1? ld: duplicate symbol typeinfo (From: "Sean McBride" <email@hidden>)

  • Prev by Date: editor question
  • Next by Date: "Edit All in Scope" never active
  • Previous by thread: Re: bug in gcc 4.0.1? ld: duplicate symbol typeinfo
  • Next by thread: Question about Architecture setting in Xcode 3.0
  • Index(es):
    • Date
    • Thread