Re: function declared inline causes link error in release build?
Re: function declared inline causes link error in release build?
- Subject: Re: function declared inline causes link error in release build?
- From: Howard Moon <email@hidden>
- Date: Thu, 5 Nov 2009 07:40:07 -0800
Never mind! I forgot that I need to put the function body in the
header file in order for the linker to see it. Apparently, the debug
build ignored the inliine directive, so it compiled and linked fine.
Live and learn...
-Howard
On Nov 5, 2009, at 7:21 AM, Howard Moon wrote:
Hi all,
I'm getting a link error (symbol not found) when compiling a
release build of my C++ app. The debug build links fine. The
symbol that it says is not found is a function that is declared as
"inline". I know that the C++ inline specifier doesn't *guarantee*
the function will be inlined, but for performance reasons I really
want it to be inline whenever possible, so I added that keyword.
But the release build doesn't see it when linking. What could be
the problem? Is there a setting I can change that will fix the
problem, WITHOUT compromising the security of a release build?
Thanks,
-Howard
_______________________________________________
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