I have been testing inline function calls in C++.
Thread model: win32 gcc version 4.3.3 (4.3.3-tdm-1 mingw32)
Stroustrup in The C++ Program
I faced similar problems and found that it only works if the inline function is written in a header file.