Doudou,
Since we are at a loss at reproducing your linking error, could you please post as many details as possible about your compialtion environment?
For example, please let us know
1) Linux distribution & version
2) gcc, g++ and gfortran versions and origin (i.e. how where they installed)
3) Cuda SDK version and it was installed.