• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: function declared inline causes link error in release build?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >function declared inline causes link error in release build? (From: Howard Moon <email@hidden>)

  • Prev by Date: function declared inline causes link error in release build?
  • Next by Date: installation failed for Xcode 3.2--10.4SDK
  • Previous by thread: function declared inline causes link error in release build?
  • Next by thread: installation failed for Xcode 3.2--10.4SDK
  • Index(es):
    • Date
    • Thread