Inline functions with VC++ 4.2
Posted on 1998-06-18
I would like to know how to get inline functions to work in VC++.
My header file contains...
int MyFunc( DWORD X );
The CPP source looks like this...
inline int MyFunc( DWORD X )
return X * X;
Now other CPP files have include the header file with MyFunc decalartion. All the files and header files are part if the project.
When I compile, the compile succeeds, but a link error
Undefined external int __fastcall MyFunc....
I am compiling with Maximise Speed, Pentium, __fastcall
Any suggestions as to how I can get inline functions working?
Thankx in advance,