I'm currently trying to get SublimeClang to work on my Windows notebook, but somehow I can't (be aware, I'm not really a C++ pro
I already figured out that somehow the header include paths are hard coded and therefore don't match my GCC 4.7.0 installation under C:\MinGW\lib\gcc\mingw32\4.7.0 so I create an NTFS symlink from C:\MinGW\lib\gcc\mingw32\4.7.0 to C:\MinGW\lib\gcc\mingw32\4.6.2 which seems to work.
Alternatively I could pass the parameters -IC:/MinGW/lib/gcc/mingw32/4.7.0/include/c++ -IC:/MinGW/lib/gcc/mingw32/4.7.0/include/c++/mingw32 -IC:/MinGW/lib/gcc/mingw32/4.7.0/include/c++/backward
each time when calling clang++ to get it to compiling something without telling me that it can't find the headers files (which is quite tedious, of course).
But in Sublime Text neither of these solutions work. I always get the message, that some header file (e.g. <iostream>) could not be found. And when I add this to my user config:
- Code: Select all
It can find that file, but then I get the message:
C:/MinGW/lib/gcc/mingw32/4.6.2/include/c++\cwchar:46,10 - Fatal - 'wchar.h' file not found
Did you configure the include path used by clang properly?
for more details on how to configure SublimeClang.
What am I doing wrong?
I have MinGW installed to C:\MinGW and Clang to C:\MinGW\clang. Both their bin directories are in my $PATH variable. Compiling with clang works fine. Only SublimeClang does not.
I also tried installing SublimeClang on my Linux workstation, but that doesn't work either. Building Python 2.6 fails with the message:
gcc: error: directory": No such file or directory
make: *** [Modules/getbuildinfo.o] Error 1
And BTW what do I need Python 2.6 for? Why doesn't it work Python 2.7 as well, which is installed anyway?
Would be great if someone could help me out with this.