Page 1 of 1
MinGW 4.4's tag unwork
Posted: Thu Jun 18, 2009 2:23 am
by Loaden
MinGW TDM 4:
http://www.tdragon.net/recentgcc/
When create MinGW4.4's tag database, std::string and std::shared_ptr work fine, but std::vector and std::map unwork.
When create database from MinGW 3.4.5 , it's work fine.vec.PNG
Re: MinGW 4.4's tag unwork
Posted: Sat Jun 20, 2009 9:21 am
by eranif
This is probably due to some macros added in 4.4
Can u please give me a download link to the MinGW you are using?
Eran
Re: MinGW 4.4's tag unwork
Posted: Sat Jun 20, 2009 10:01 am
by Loaden
eranif wrote:This is probably due to some macros added in 4.4
Can u please give me a download link to the MinGW you are using?
Eran
MinGW TDM 4:
http://www.tdragon.net/recentgcc/
http://downloads.sourceforge.net/tdm-gc ... .4.0-2.exe
Re: MinGW 4.4's tag unwork
Posted: Sun Jun 21, 2009 4:02 pm
by eranif
Hi,
Thanks for the link.
I installed it and as I suspected, this new version contains new set of macros...
The solution is simple:
- Close the extenal tags database you already created, from 'tags -> close external tags database'
- Open tags settings from the menu: 'settings -> tags settings... -> Advanced'
- Click the button at the end of the 'preprocessor line' (the three dots button)
and add this line at the end:
Code: Select all
_GLIBCXX_BEGIN_NESTED_NAMESPACE(std, _GLIBCXX_STD_D)=namespace std{
As you can see, this version uses new macro _GLIBCXX_STD_D while the 3.4.5 version used _GLIBCXX_STD (no _D at the end)
- Recreate a new tags database from TDM-MinGW sources (note that the std headers are located at: C:\MinGW-TDM\lib\gcc\mingw32\4.4.0\include\c++\ C:\MinGW-TDM is my TDM installation path)
Works like a charm now.
Eran
Re: MinGW 4.4's tag unwork
Posted: Fri Jun 26, 2009 10:31 am
by Loaden
OK! Now it's work fine! Thanks!!