gridding_reverse.cu(9): fatal error C1083: Cannot open include file: 'bits/stdc++.h': No such file or directory
Danial-Kord opened this issue · 3 comments
Hey there,
Thank you for sharing your awesome work with us.
I was dealing with the error I specified in the subject title while installing the grinding module. After hours of fighting for a solution :), I resolved it.
Just want to share my findings with those who may face the same in the future!
-
Better solution
The problem is basically because your MinGW or Visual Studio doesn't have 'bits/stdc++.h' header file. a good way to solve it is to add this file(link is available below) to your MinGW or Visual Studio library.
This link will help you:
https://rrrjin.medium.com/solution-to-include-bits-stdc-h-in-visual-studio-c-7d69f20485ce#:~:text=you%20should%20write%20your%20own,the%20header%20file%20stdc%2B%2B.
This is the file you need: 'bits/stdc++.h'
https://gist.githubusercontent.com/Einstrasse/ac0fe7d7450621a39364ed3b05cacd11/raw/e1dc9b6c9221f1477d52bab918c9e8e34bb362f4/bits-stdc++.h -
Fast solution:
Go toextensions\gridding\gridding_reverse.cu
and change the line#include <bits/stdc++.h>
with all the contents at the link below
https://gist.githubusercontent.com/Einstrasse/ac0fe7d7450621a39364ed3b05cacd11/raw/e1dc9b6c9221f1477d52bab918c9e8e34bb362f4/bits-stdc++.h
Good luck ;)
Cheers,
Danial
That's cool, thanks a lot for your sharing, which is helpful for who are struggling in the similar issues!
Best
@Danial-Kord Thanks, save me a day :)
@Danial-Kord Thanks, save me a day :)
Happy I could help :D.
Good luck