C file in Xcode C++ project -- (partially) solved
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