jjzjj

c++ - 发生 PIE 链接错误时不能使用针对 `.bss' 的重定位 R_X86_64_32S

我正在尝试编译AccNEAT具有CUDA支持的项目。当我在没有CUDA支持的情况下编译它时,它工作正常。但是,当我使用CUDA支持进行编译时,出现链接器错误。要编译项目,我的环境是Ubuntu18.04LTS64位,带有GCC-4.8和NVCC6.0。链接器错误:/usr/bin/x86_64-linux-gnu-ld:obj/cu/network/cuda/cudanetwork.o:relocationR_X86_64_32Sagainst`.bss'cannotbeusedwhenmakingaPIEobject;recompilewith-fPIC/usr/bin/x86_64

引用关系的 Mongoid 标准

我有这两个模型:classTrackincludeMongoid::Documentfield:artist,type:Stringfield:title,type:Stringfield:isrc,type:Stringhas_many:subtitlesendclassSubtitleincludeMongoid::Documentfield:lines,type:Arraybelongs_to:trackend如何检查是否存在具有特定“isrc”和字幕(无论有多少)的轨道?我一直在尝试这个,但它似乎忽略了字幕标准:Track.exists?(conditions:{isrc:my