Problem in Dynamic Library

Solved. Linked with static VTK library. Without AutoInit. And the following error:

nvcc --gpu-architecture=sm_75 -O3 -Xcompiler -I/usr/local/include/vtk-9.0/ -Xlinker @l3.txt -Xcompiler -fopenmp --shared -Xcompiler -fPIC -shared testlib.cu -o testlib.so

Xlinker was before Xcompiler.