[問題] CUDA的問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
CUDA4.0 VS2008 C++
問題(Question):
我目前正在寫CUDA的程式,目前在看一份source code
它給我的執行檔可以執行
可是我把他的程式重新compile
卻過不了
一直出現
error LNK2019: unresolved external symbol "void __cdecl MCd<0>(struct
MemStruct)" (??$MCd@$0A@@@YAXUMemStruct@@@Z) referenced in function "void
__cdecl DoOneSimulation(struct SimulationStruct *,unsigned __int64 *,unsigned
int *)" (?DoOneSimulation@@YAXPEAUSimulationStruct@@PEA_KPEAI@Z)
我去project裡的linker看,cuda.lib cudart.lib ...該加的我都有加
請問有人知道要如何解決嗎?
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.249.194.67
→
10/10 08:24, , 1F
10/10 08:24, 1F
推
10/10 13:55, , 2F
10/10 13:55, 2F
※ 編輯: robert000 來自: 140.112.174.28 (10/10 15:10)
→
10/10 15:10, , 3F
10/10 15:10, 3F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章