I have first and last occurance in my lib file,please help how to resolve this issue
Do you also have all of the "unresolved external symbol" errors in between the first and last occurrences ?
Could you please provide the output of running perl -V Are you actually using Visual Studio 10 as your C compiler ? (Assuming that you are using a Microsoft Compiler, the output of running cl /? might also be useful.)