|
-
January 6th, 2009, 08:51 PM
#4
Re: "inline" and linking errors
A function declared as inline automatically has internal linkage unless you specify otherwise.
Inline functions never make it to the linker. They're entirely expanded in-place by the compiler. Hence the difference.
Assuming, that is, that the compiler chooses to actually inline the function. It doesn't always do so.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|