• 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: mismatching weak references for symbol? [solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mismatching weak references for symbol? [solved]


  • Subject: Re: mismatching weak references for symbol? [solved]
  • From: Dave Camp <email@hidden>
  • Date: Mon, 19 Jul 2004 10:37:20 -0700

I happened to notice that all the HI Theme calls were 10.3 only, so I tried switching all my targets SDK settings from Compiler Default to 10.3 and the link errors went away.

Hopefully documenting this in the list will save someone else some grief.

Dave

On Jul 16, 2004, at 2:32 PM, Dave Camp wrote:

This appears to be my week for cryptic error messages...

I've got two projects. One project builds a static library (libFoo.a) and as such does not link with any other libraries or frameworks. The other project builds a Carbon app that links with Carbon.framework and libFoo.a.

I'm getting the following, but I don't know what it means:

ld: mismatching weak references for symbol: _HIThemeDrawButton
/path/to/libFoo.a(TreeControl.o) reference to weak _HIThemeDrawButton
/path/to/libFoo.a(ToolBar.o) reference to weak _HIThemeDrawButton
/path/to/libFoo.a(ComboDe.o) reference to weak _HIThemeDrawButton
ld: mismatching weak references for symbol: _HIThemeDrawGenericWell
/path/to/libFoo.a(Static.o) reference to weak _HIThemeDrawGenericWell
ld: mismatching weak references for symbol: _HIThemeDrawSeparator
/path/to/libFoo.a(Static.o) reference to weak _HIThemeDrawSeparator
/path/to/libFoo.a(ToolBar.o) reference to weak _HIThemeDrawSeparator
ld: mismatching weak references for symbol: _HIThemeDrawTab
/path/to/libFoo.a(TabControl.o) reference to weak _HIThemeDrawTab
ld: mismatching weak references for symbol: _HIThemeDrawTextBox
/path/to/libFoo.a(TabControl.o) reference to weak _HIThemeDrawTextBox

Googling on the error message doesn't yield any interesting results.

The odd thing about this is that libFoo.a uses a lot of Carbon stuff, not just those HIToolbox routines, but I'm only getting errors on the HIToolbox stuff.

Any thoughts?

Dave

---
Among the chief weapons of UNIX: Fear, surprise and ruthless efficiency.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.




---
You are in a maze of testy little Java VMs, all subtly different.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • forward declaration errrors?
      • From: Eric Hackborn EH <email@hidden>
References: 
 >mismatching weak references for symbol? (From: Dave Camp <email@hidden>)

  • Prev by Date: Re: Header Doc 8 - formatting issue
  • Next by Date: Debugger suddenly stopped working?
  • Previous by thread: mismatching weak references for symbol?
  • Next by thread: forward declaration errrors?
  • Index(es):
    • Date
    • Thread