Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have no idea where the file I just imported is

A sufficiently long include path can give you this problem anyway. I recently tripped over this when I created a "reason.h" and discovered that Windows had a file of the same name deep inside MFC.



I recently tripped over this when I created a "reason.h" and discovered that Windows had a file of the same name deep inside MFC.

It is my understanding that that would be solved by placing your file in a local directory called 'inc/' and having:

  #include "inc/reason.h" 
instead of:

  #include <reason.h>
(or just replacing "" with <>). But I have never programmed in VSC before, so I may be wrong.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: