Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
patch to get the correct mingw gcc include search paths
xunxun:
--- Quote from: ollydbg on July 08, 2011, 06:51:52 am ---what does "-<" means?
I can't find this option from: http://gcc.gnu.org/onlinedocs/gcc/Option-Summary.html
But I don't think -dD is need, because CC has another function to collect the predefined macros.
look at:
bool NativeParser::AddCompilerPredefinedMacros(cbProject* project, Parser* parser)
it use:
const wxString args(_T(" -dM -E -< nul")); under mingw.
--- End quote ---
Yes, I know that. But "-< nul" has something error in wx. This also uses wxExecute:
--- Code: ---wxExecute(cpp_compiler + args, output, wxEXEC_SYNC | wxEXEC_NODISABLE) == -1
--- End code ---
"-dM -E -< nul" may have some errors in some compiler (including my gcc 4.6.1).
So I suggest all avoid "-<".
xunxun:
--- Quote from: xunxun1982 on July 08, 2011, 07:15:44 am ---So I suggest all avoid "-<".
--- End quote ---
Or we should report this error to wx.
Loaden:
Try this patch?
ollydbg:
--- Quote from: Loaden on July 08, 2011, 10:11:36 am ---Try this patch?
--- End quote ---
Test on mingw 4.6.x and 4.5.x, both work fine!
No time to test other mingw version :D...
xunxun:
--- Quote from: ollydbg on July 08, 2011, 10:56:02 am ---
--- Quote from: Loaden on July 08, 2011, 10:11:36 am ---Try this patch?
--- End quote ---
Test on mingw 4.6.x and 4.5.x, both work fine!
No time to test other mingw version :D...
--- End quote ---
I also test it, then my used editions work fine.
Navigation
[0] Message Index
[*] Previous page
Go to full version