Re: What should be a simple linking problem
Re: What should be a simple linking problem
- Subject: Re: What should be a simple linking problem
- From: "Richard L. Aurbach" <email@hidden>
- Date: Thu, 9 Apr 2009 17:48:10 -0500
To answer my own question --
I originally built the libSSCE.a static library using the original
settings of "C Dialects to Precompile" (ie, C Objective-C C++
Objective-C++) and "Compile Sources As" (According to File Type).
Apparently with these settings, the compiler did some name mangling of
everything not explicitly declared extern "C". Even though ALL of the
files in the library had file type .c.
Changing the settings to "C Dialects to Precompile" = c and "Compile
Sources As" = C caused all of the names in the library to be non-
mangled. And this solved the problem.
On Apr 9, 2009, at 3:18 PM, Richard L. Aurbach wrote:
I did, indeed, include the header file in the compilation of
SSCE_TempLexName.cpp and the result was an unmangled name. Indeed,
using nm, I see that the name is "_SSCE_TempLexName".
Unfortunately, it appears that the C-language library is looking for
"SSCE_TempLexName" (i.e., without the leading '_'). So there IS an
incompatibility between the C-language library and the object file
from my C++ project.
How do I combat this problem? Have I built the libSCCE.a file
incorrectly?? I have sources and can make changes if appropriate,
but I don't know what changes to make.
Cheers,
Rick Aurbach
_______________________________________________
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