Author: Matt Taylor
Date: 23:34:18 02/19/03
Go up one level in this thread
On February 20, 2003 at 01:32:36, Nathan Thom wrote:
>I keep getting this error when trying to inline a function in VC++ .NET
>
>inline int MSB(BitBoard b) {
>error C2054: expected '(' to follow 'inline'
>
>when i try __inline, i get the error:
>
>__inline int MSB(BitBoard b) {
>error LNK2001: unresolved external symbol _MSB
>
>and __forceinline, i get:
>
>__forceinline int MSB(BitBoard b) {
>error LNK2001: unresolved external symbol _MSB
>
>Can anyone tell me what im doing wrong?
I don't see any syntactic problems. However, the latter two cases indicate that
it really isn't inlining your function.
-Matt
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.