Re: Framework linking error
Re: Framework linking error
- Subject: Re: Framework linking error
- From: Jens Alfke <email@hidden>
- Date: Fri, 04 Jul 2014 13:09:45 -0700
On Jul 4, 2014, at 6:30 AM, Livio Isaia <email@hidden> wrote:
> Now, in ViewerCocoa.mm I just make a call to the inline function of the header (with only 1 parameter)
Yes, and this expanded into a call to the version with 2 parameters.
> and cannot understand where should be a function readNodeFile with 4 parameters.
It doesn’t have 4 parameters. If you read the message carefully, it has 2 parameters; the first parameter is a std::string expressed as the full template expansion info basic_string that itself has 2 parameters. So the linker error does in fact refer to the function that you called (via the inline function.)
(Making sense of compiler errors is one of my least favorite aspects of C++ :-p Although I must say that Clang’s error messages are actually much, much more readable than GCC’s.)
The error implies that the function isn’t exported from the library. Probably the library was built with no exported symbols, or all the symbols were stripped. You’ll have to look at the linker and deployment build settings of the target that built the library. The ‘nm’ tool is also very useful as a way to check what’s actually exported.
—Jens
_______________________________________________
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