windows - Visual Studio 2010 CUDA 4.0 Linker fejl

Indlæg af Hanne Mølgaard Plasc

Problem



Kender nogen en nem måde at løse de følgende fejl på:


1>matrixmul.cu.obj : error LNK2019: unresolved external symbol \_\_imp\_cutComparefe referenced in function main
1>matrixmul.cu.obj : error LNK2019: unresolved external symbol \_\_imp\_cutDeleteTimer referenced in function main
1>matrixmul.cu.obj : error LNK2019: unresolved external symbol \_\_imp\_cutGetTimerValue referenced in function main
1>matrixmul.cu.obj : error LNK2019: unresolved external symbol \_\_imp\_cutStopTimer referenced in function main
1>matrixmul.cu.obj : error LNK2019: unresolved external symbol \_\_imp\_cutStartTimer referenced in function main
1>matrixmul.cu.obj : error LNK2019: unresolved external symbol \_\_imp\_cutCreateTimer referenced in function main
1>matrixmul.cu.obj : error LNK2019: unresolved external symbol \_\_imp\_cutReadFilei referenced in function main
1>matrixmul.cu.obj : error LNK2019: unresolved external symbol \_\_imp\_cutReadFilef referenced in function "int \_\_cdecl ReadFile(struct Matrix *,char *)" (?ReadFile@@YAHPEAUMatrix@@PEAD@Z)
1>matrixmul.cu.obj : error LNK2019: unresolved external symbol \_\_imp\_cutWriteFilef referenced in function "void \_\_cdecl WriteFile(struct Matrix,char *)" (?WriteFile@@YAXUMatrix@@PEAD@Z)


Jeg har allerede forsøgt at tilføje lib-mapper i:


C:ProgramDataNVIDIA CorporationNVIDIA GPU Computing SDK 4.0Ccommonlibx64
C:ProgramDataNVIDIA CorporationNVIDIA GPU Computing SDK 4.0CUDALibrariescommonlibx64


Enhver hjælp er opskrevet

Bedste reference


Disse symboler ligner funktioner fra 'cutil' biblioteket, som er inkluderet i CUDA SDK, så du bør sørge for, at Visual Studio er oprettet for at linke mod cutil.lib.