Computer Chess Club Archives


Search

Terms

Messages

Subject: VC++.NET Inlining problem

Author: Nathan Thom

Date: 22:32:36 02/19/03


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?



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.