แสดงบทความที่มีป้ายกำกับ visual studio แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ visual studio แสดงบทความทั้งหมด

วันจันทร์ที่ 14 กันยายน พ.ศ. 2552

Set up CUDA Project #3 : LNK1181 again

I encounter LNK1181 again but not error that occur is
(fatal error LNK1181 : cannot open input file 'cudart.lib')

the solution is the same only delete double quote in
project > properties > Configuration Properties > Linker > General > Additional Library Directories

Set up CUDA Project #2 : Try to Build Example Project

I should say it before you read that I install Cuda winapp add-in before do this operation.

when you first build cuda project that you got from SDK
you will get this error (fatal error LNK1181:cannot open input file '.\Debug\bandwidthTest.cu.obj')


even you try search clue in log file. it help you not much



Compiling with CUDA Build Rule...
"C:\CUDA\bin\nvcc.exe" -arch sm_10 -ccbin "C:\Program Files\Microsoft Visual Studio 8\VC\bin" -Xcompiler "/EHsc /W3 /nologo /Od /Zi /MTd " -I""C:\CUDA\include;C:\ProgramFilesSummer4\NVIDIA Corporation\NVIDIA CUDA SDK\common\inc;"" -I"../../common/inc" -maxrregcount=32 --compile -o "Debug\bandwidthTest.cu.obj" bandwidthTest.cu
nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified
Linking...
LINK : fatal error LNK1181: cannot open input file '.\Debug\bandwidthTest.cu.obj'

the right answer for me is come from this url.
http://www.cs.ucf.edu/~janaka/gpu/issues.htm

follow his advice Remove quotations from the nvcc include directories list

from this picture it changed to $(CUDA_INC_PATH);../../common/inc

Set up CUDA Project #1

After Install Cuda WinApp for Visual Studio 2005.
I try start first project and encounter
"This application has failed to start because cutil32D.dll was not found. Re-installing the application may fix this problem."

It solved by copy cutil32D.dll from SDK to CUDA\bin directory

Add Reference in Visual C++

After long time to code to add library to use in C++.
I found that there has some other way to add reference.
Just like bottom picture
right click at project then select properties then common properties > references

Yeah that right!