How to solve error problem on Pgi visual fortran 2008 ?

I use Pgi visual fortran 2008 in Windows OS to create a project that consists of a fortran library.
It compiles and builds ok but when I set a link , I get some errors .
I have changed the platform such as eclipse , but the problem remains the same .
How can I fix it ?
