CUDA:VFW - 编解码器 DLL
我的英语不是很好,对此我感到很抱歉。
我有一个基于 VFW 接口的 Windows(C++)视频编解码器项目。它编译成dll,设置并成功运行。 我想要的是添加 CUDA 内核函数来强制/改进一些算法步骤。 我已经安装了 SDK、工具包和向导。将 CUDA 规则应用于项目。添加了带有我的内核函数的 .cu 文件和代表内核包装器的 .cu 文件。 我还读过 这个主题并应用了所有内容。
大多数情况下一切都很顺利,但我只得到了
1>Linking..
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartuperror:
这个项目的类型之前设置正确,我可以说,因为在我添加 .cu 文件、应用规则之前该项目运行良好。
My English is not very good and I'm sorry for that.
I have a video codec project for windows(C++), based on VFW interface. It compiles into dll, setups and runs successfully.
What i want is to add CUDA kernel functions to force/improve some algorithm steps.
I have installed SDK, toolkit and wizard. Applied CUDA rule to project. Added .cu file with my kernel function and a .cu file which represents a wrapper to kernel.
I've also read this topic and applied all as well.
Mostly everything goes well, but I got this only
1>Linking..
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartuperror:
The type of the project was set correctly before, I can say that because the project was running well before i added .cu files, applied rules.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要提供有关正在使用的链接器命令行的更多详细信息,但看起来“子系统”可能不正确。我相信当您构建 Windows 可执行文件时会使用
crtexecw.obj
- 因此它会尝试查找WinMain
入口点。You need to provide more details as to precisely what linker command-line is being used, but it looks like the "Subsystem" is possibly incorrect. I believe that
crtexecw.obj
is used when you're building a Windows executable - hence why it's trying to find theWinMain
entry point.