I created simple cuda fortran code in two forms, first as console application and second as dynamic link library. First case was alright (compiling, building and running without problems), but in second case an link error occurred:
pgf90 -Bdynamic -c cudainfodll.cuf
pgf90 -Mmakedll cudainfodll.obj -o cudainfo.dll
Creating library cudainfo.lib and object cudainfo.exp
cudainfodll.obj : error LNK2001: unresolved external symbol CUDAFOR
cudainfo.dll : fatal error LNK1120: 1 unresolved externals
I am using PGI Community Edition 17.4. Comparing both source codes I can send. Can anyone help me?