Recommended Posts

Hi all,
I am facing strange problem in VC++ 2005.When I try to compile .cpp file which contains inline function declarations than linker is giving "Unresolved External symbol error" when i remove the inline keyword it works just fine. In fact i have tried it by taking small example in which it works just fine with even inline keyword in source file. But when i try to do same thing with my engine code than linker is complaining.Please help me to figure out the problem.
Thanks.

Share this post

Link to post

Share on other sites

Thanks Portmanteau for quick response :). I know that inline function definition can be placed in header file But i want to maintain the function declaration and definition in seperate files hence i would like to place the definition in .inl file.so i am using the inline keyword in .inl file but linker complaining with this.