-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/usr/include/cuda_runtime_api.h ==> d: Error: undefined identifier cudaError_t
#280
Comments
btw, it's defined in another included file: /usr/include/driver_types.h
|
Found work-around: let
Maybe you can add this tip to the README to help other users? |
Please include the input and the expected output. |
Most generated D files will not be self contained if the header file is not. So yes, you need to find where the symbols are defined and generate D files for those as well and manually import the D files. |
At one point I would like to make DStep operate on a whole directory of header files. Then it can hopefully import the D files automatically. |
$ dpkg -S /usr/include/cuda_runtime_api.h $ wc /usr/include/cuda_runtime_api.h $ dpkg -l nvidia-cuda-dev It needs lots of related headers to be compiled, so that's why in the end, I choose to run dstep on the |
Shall this generated
cuda_runtime_api.d
be self-contained? or I need to find the .h which defined cudaError_t, and include those files in the D/step build?The text was updated successfully, but these errors were encountered: