• 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
C file in Xcode C++ project -- (partially) solved
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C file in Xcode C++ project -- (partially) solved


  • Subject: C file in Xcode C++ project -- (partially) solved
  • From: Michael McLaughlin <email@hidden>
  • Date: Wed, 21 Nov 2007 15:46:37 -0500
  • Thread-topic: C file in Xcode C++ project -- (partially) solved

Thanks to the Build Log, I found a solution to this part of my problem
described as
...
I created a static C library (.a extension) from the Altivec code referenced
below and tried it out in an Xcode C project.  It worked perfectly.  Also,
the nm utility confirms that the necessary global symbols are exported.

However, adding this C library to the Xcode C++ app stationery, and calling
it, gives a linker error for undefined (static C library) symbols.
...

The library in question, built some months ago, was a PPC-specific library,
due to the Altivec, code and the cited C project was as well.  However, when
I tried a new, C++ project recently, starting with Xcode stationery, the
default architecture was universal (ppc, i286) and ld refused to link.
Hence the error.

Sadly, I seem to recall having this error once before :-(

--
Mike McLaughlin

 _______________________________________________
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: C file in Xcode C++ project -- (partially) solved
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: How do I escape accented characters for the shell?
  • Next by Date: Re: Problem loading IB plugin [solved]
  • Previous by thread: Re: C file in Xcode C++ project -- Addendum
  • Next by thread: Re: C file in Xcode C++ project -- (partially) solved
  • Index(es):
    • Date
    • Thread