【发布时间】:2013-08-01 06:18:54
【问题描述】:
我有一个在 CUDA 4.0 上用 C 语言开发的项目。现在我尝试在 CUDA 5.0 上编译它,但 cutil.h 有一些问题,我已将 cutil 更改为 helper_cuda.h,但我总是收到此错误:
In file included from /path/to/helper_cuda.h:24
和
/path/to/helper_string.h:18: fatal error: fstream: No such file or directory
fstream 是一个 C++ 库,我怎样才能编译它而不出现这个错误?
对不起我的英语:D
【问题讨论】:
-
如果它是 C++ 库,您将无法与 C 一起使用。它们是不同的语言。
-
你的问题对我来说不是很清楚。您是否看过以下帖子:CUDA cutil.h where is it?、CUDA 5.0: Replacement for cutil.h? 和 Dependencies on cutil when using CUDA 5.0?