Code::Blocks Forums

User forums => Help => Topic started by: K.I.L.E.R on January 07, 2006, 12:48:03 pm

Title: Not a bug but something not implemented right
Post by: K.I.L.E.R on January 07, 2006, 12:48:03 pm
Ever store your files in different sub folders?
Well I do.

#include "..\gameInterface\IGame.h"

While it compiles and links corectly but take a guess at what happens when you right click and select "Open #include file:[...]" option?
A message box saying "Not found ..\gameInterface\IGame.h".

Will this be improved upon?
Thanks.
Title: Re: Not a bug but something not implemented right
Post by: mandrav on January 07, 2006, 12:59:04 pm
Quote
Will this be improved upon?

Yes it will.
Title: Re: Not a bug but something not implemented right
Post by: K.I.L.E.R on January 07, 2006, 01:09:02 pm
Thanks.
I would also like to mention that any cpp file that includes the header doesn't have code completion working within it.
Title: Re: Not a bug but something not implemented right
Post by: Michael on January 07, 2006, 01:54:23 pm
I would also like to mention that any cpp file that includes the header doesn't have code completion working within it.

Yes, I have remarked it too sometimes ago :). See here (http://forums.codeblocks.org/index.php?topic=1304.0). For more info you can also search in the forum. Anyway, the code completion is WIP.

Michael
Title: Re: Not a bug but something not implemented right
Post by: thomas on January 07, 2006, 06:45:22 pm
Will this be improved upon?
As of release 1602, December 27, 2005 this works for every file whose filesystem path the parser is able to determine. This works with almost all files with the sole exception of a few standard C++ headers.

Furthermore, to avoid the annoying "not found" error messages, the respective menu entries are only shown if the parser can determine the location of a symbol.
Title: Re: Not a bug but something not implemented right
Post by: killerbot on January 07, 2006, 07:37:55 pm
Even for header files it could work, I have submitted along time ago a patch to Yiannis by PM, tomorrow I will update the patch to the latest revision.

Patch contains 2 things :
- on the inside the extra paths of the gnu compiler are added so they can be searched,
- if a certain header file is found several time a dialog shows up which allows you to select amongst the seach hits.

I will post the patch also on sourceforge, maybe Thomas you can process it then, although you are probably as busy as Yiannis with other stuff.

Lieven