function declared inline causes link error in release build?
function declared inline causes link error in release build?
- Subject: function declared inline causes link error in release build?
- From: Howard Moon <email@hidden>
- Date: Thu, 5 Nov 2009 07:21:25 -0800
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