• 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: multiple definitions of symbol _xxxx
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiple definitions of symbol _xxxx


  • Subject: Re: multiple definitions of symbol _xxxx
  • From: Thomas Engelmeier <email@hidden>
  • Date: Fri, 9 Feb 2007 10:21:08 +0100


On 09.02.2007, at 09:11, Ken Tozier wrote:


I just pored through the headers for the 3rd party lib and found one of the problem symbols. It's defined like this


inline bool8 XTAPI ISANCHBOX2(const xtbox *bptr)


There are multiple reasons that could cause this. Some of the less obvious are:

One is that there seem to exist projects that depend on including a xcconfig file that redefines the system C rule to use the C++ compiler (why the files are not saved as .cpp is beyond me..)
+ XCode is picky about the xcconfig file, so if there is an error in it it might siltently fail to use it. It will not use the C++ rule and use the C compiler
+ The project might be se up not use a target config based on that xcconfig file (IMO, it would be much more obvious to use a "root" project xcconfig file and specialize with target xcconfig files, anyway...)


Check those two. The build transcript is helpful to spot those errors.

BTW, it is not necessary to use static for C++ inlines in order to enforce "local" linkage. I am not sure if C99 has inline as keyword and how it handles it, though.

Regards,
	Tom_E
_______________________________________________
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


  • Follow-Ups:
    • Re: multiple definitions of symbol _xxxx
      • From: Steve Checkoway <email@hidden>
References: 
 >multiple definitions of symbol _xxxx (From: Ken Tozier <email@hidden>)
 >Re: multiple definitions of symbol _xxxx (From: Steve Christensen <email@hidden>)
 >Re: multiple definitions of symbol _xxxx (From: Eric Albert <email@hidden>)
 >Re: multiple definitions of symbol _xxxx (From: Steve Christensen <email@hidden>)
 >Re: multiple definitions of symbol _xxxx (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: multiple definitions of symbol _xxxx
  • Next by Date: Re: multiple definitions of symbol _xxxx
  • Previous by thread: Re: multiple definitions of symbol _xxxx
  • Next by thread: Re: multiple definitions of symbol _xxxx
  • Index(es):
    • Date
    • Thread