one question about "Directshow + CUDA

vuarnet0318 2010-01-21 06:34:35
Hello...all , I'm Eric...
I checked CUDA Zone Forum and found this article...
http://forums.nvidia.com/index.php?showtopic=86779&hl=

I want to create one directshow transform filter combined with MyCudaProj.dll (<-- I created it)
Now I use "LoadLibrary" function to load *.dll ...
But it always can't be loaded...
I'm sure *.dll is ok, cuz I test it with VS2005 console project successfully... confused.gif

Another way I think is to add *.cu in Directshow Filter proj ...
In order to let Directshow transform function call function of *.cu successfully,
I add (Extern "C") to define the function of *.cu...
But... the Vs2005 compiler always shows this message

nullnull.obj : error LNK2019: unresolved external symbol _TestHelloCUDA@0 referenced in function "private: virtual long __thiscall CNullNull::Transform(struct IMediaSample *)" (?Transform@CNullNull@@EAEJPAUIMediaSample@@@Z)
1>Debug\nullnull.ax : fatal error LNK1120: 1 unresolved externals

Did you have any experience about this...
I also check my project setting many times, but nothing happened... pinch.gif>_<
...全文
114 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
OpenHero 2010-01-27
  • 打赏
  • 举报
回复
can you send email to me?
vuarnet0318 2010-01-22
  • 打赏
  • 举报
回复
otherwis... I create ststic library to be used in Directshow Filter function...
But get the information as below ...
Error Message : LNK 2019 unresolved external symbol ....

I add extern "C" to define my cuda function...

nothing happened... how sad... >_<"
vuarnet0318 2010-01-22
  • 打赏
  • 举报
回复
I just copy the *.obj file about *.dll ...
But it still has nothing...

Can you share more detail about your experience ...thanks~~! ^^
  • 打赏
  • 举报
回复
makefile有问题.link时没加上包含TestHelloCUDA的obj文件.(好像是xxx.cu.obj?)

231

社区成员

发帖
与我相关
我的任务
社区描述
CUDA on Windows XP
社区管理员
  • CUDA on Windows XP社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧