User forums > General (but related to Code::Blocks)
why doesn't code completion work for me?
sethjackson:
--- Quote from: mrpringle on September 01, 2006, 10:15:12 am ---why doesn't wxwidgets parsing work for me?
I compiled wxwidgets as a unicode dll
Any ideas?
--- End quote ---
Yes actually. It may be a bug in the parser. However in your main.h header you included app.h when you should have done the normal
--- Code: ---include <wx/wxprec.h>
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include <wx/wx.h>
#endif
--- End code ---
there really is no reason to include the app.h header in your main.h header AFAIK. :)
Game_Ender:
When not using pre-compilied headers Including all of wx.h in every file that uses wxWidgets will result in slower compile times. So if all you need was app.h in your file and you are using precompilied you could/should do something like this:
--- Code: (cpp) ---include <wx/wxprec.h>
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
// Only include the headers we need here
#include <wx/app.h>
#endif
--- End code ---
This will speed compile times because the compiler will not have to process almost every wxWidgets header when you only want one.
killerbot:
precompilation headers : you only include them in implementation files, not in other header files !!!
mrpringle:
I am not overly experienced in c++, and I have only made console applications, so the project I uploaded is just the default wxwidgets project generated by codeblocks, with some minor modifications to demonstrate how strings don't have code complete.
Will the standard library have code complete eventually? Or isn't it a goal of code completion?
sethjackson:
--- Quote from: mrpringle on September 02, 2006, 02:24:55 am ---Will the standard library have code complete eventually? Or isn't it a goal of code completion?
--- End quote ---
I would venture to say that it would in the future. ;)
Navigation
[0] Message Index
[*] Previous page
Go to full version