User forums > Help
Issues with "Find Declaration of" and Code Completion.
jonas thomas:
I appreciate the offer. I done think there's an issue with the code, but perhaps something I've done with code::blocks that the code::completion isn't working.
Tutemlake:
I will post here, since I have similar issues with the code completion feature.
I'm using codeblocks (svn 7178, unicode) on 64-bit Win 7.
Like the OP, I'm building an application using OGRE (mingw SDK 1-7-2). I've started with a similar, but even smaller codebase (http://www.ogre3d.org/tikiwiki/Ogre+Wiki+Tutorial+Framework#TinyOgre).
And I cannot seem to get the auto-completion to work! I'm always getting the "The Parser is still parsing files..." message. And when I right click on a header file (say OgreRoot.h) and then on "Open include file", I get a "Not found" message (I remember that at least this working at some point... Not sure why it's not now)
I have tried:
* putting the path to includes in compiler settings as well as in C/C++ parser settings
* reparsing the whole project
* disabling and re-enabling a combination of CC settings
* using namespace Ogre;
* explicitly using namespaces on declarations
--- Quote from: ollydbg on June 05, 2011, 04:49:33 am ---I just test a sample code below:
...code..
and it works here.
--- End quote ---
Can you elaborate on how you managed to make it work? Obviously, I'm missing something...
Is there a known procedure on how to make CC register the include files?
ollydbg:
I have download the full Ogre mingw sdk and the tinyOgre sample.
I just create a console project, and put the source of tinyOgre there, and setting the compiler search path.
and "Find declaration of" works.
the batch parsing seems works fine:
--- Code: ---Project 'Ogre' parsing stage done (306 total parsed files, 37200 tokens in 0 minute(s), 3.781 seconds).
--- End code ---
So, you need to give use a step by step to produce your bug.
thanks you.
Tutemlake:
I've tried again now with a fresh copy of the latest nightly CB and the ogre mingw sdk.
Extracted all archives on D:\, respectively.
Started CB, created a new C++ console project on D:\ called test.
Removed main.cpp from the project.
Added the TinyOgre files to project, recursively.
Right-clicked on the project test -> Build options -> Selected test (instead of Debug) on the left panel -> Search directories -> Compiler -> Clicked the Add button -> I've put in D:\OgreSDK_mingw_v1-7-2\include\OGRE -> OK -> OK
At this point I've tried the "Find Declaration of", CC and "Open #include file" features, all of which do not work. Their respective errors are: "Not found", "The Parser is still parsing files" and "Not found".
I should note that the same occurs on the original main.cpp:
--- Code: ---#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}
--- End code ---
ollydbg:
I have two include search path
D:\OgreSDK_mingw_v1-7-2\include\OGRE
and
D:\OgreSDK_mingw_v1-7-2\include\OIS (If I remember correctly)
And after that, I just save/close the project, and open it again, then everything works well.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version