Hello guys,
It has been 2 years now I discovered C::B (and I really appreciate it) and I start to get deeper in C++.
I wanted to try std::thread of C++11 and the bundled TDM 4.7.1 32 bits does not include it.
I downloaded
MinGW 4.9.3 SEH POSIX 64 bits compiler and I created a new compiler in the IDE.
I added the right path and created a dummy test program. Here the fun begins ...
When i started to write #include and ctrl-space,
no suggestions appeared for standard headers such as iostream or cstdlib.
I had to add the path to C:\MinGW64_4.9.3_POSIX_SEH\x86_64-w64-mingw32\include\c++ into the search directories of the compiler to have right headers.
And if I had C:\MinGW64_4.9.3_POSIX_SEH\x86_64-w64-mingw32\include\c++\tr1,
the parser could not do its job because of same name header collision.
Well, I kept only the first path to avoid that collision and I had a partial but functional header autocompletion.
I then added
thread header file but when i started to write "std::thr" and then ctrl-space,
i had no std::thread suggestion.
I opened the
thread file and
it had no syntax color like if C::B did not detect it was a valid C++ header.
So no help at all to write my code. When I finally finished my little demo. The compilation went well... At least.
To sum up I have
2 questions :
1)Do we really need to add header folders for new compilers to have header autocompletion for
#include (which may lead to suggestion collision and block autocompletion) ? Or is there a canonical way to set-up a new compiler and let C::B detect all the available headers inside the compiler folders and deal with same named headers ? Because in the provided settings of TDM 4.7.1 shipped with C::B, there is no header inclusion and the autocompletion still works and even deals properly with same named headers.
2)Is there a way for C::B to parse properly new headers content ? Or at least a way to force it, help it to do so ? To use the content of these headers in our code : classes, methods, etc.
Thanks in advance for any suggestion, help, idea, tips
EDIT : I tried with
<array>, same thing. When I write std::, no autocompletion. But something new this time, the header has the syntax color.