Compilers are free to choose to ignore the inline keyword or not.
Move the code in test2.cpp to test2.h since you use the linline keyword, then delete test2.cpp from the project.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Offline 21,951 posts
since Aug 2005