User forums > Help

Issues with "Find Declaration of" and Code Completion.

<< < (3/3)

MortenMacFly:

--- Quote from: ollydbg on June 21, 2011, 04:03:17 am ---And after that, I just save/close the project, and open it again, then everything works well.

--- End quote ---
Same here. Can you tell how you setup CC in the options, please? Maybe we missed some flags in the setup to reproduce.

Tutemlake:
It works now!
I went to where CB stores settings and deleted it, so I got the vanilla settings, and now it works fine.

I'm gonna fiddle with the settings to see what I set wrong previously

EDIT: I've fiddled a bit, and every combination of settings in CC works fine now.
In short... I haven't a clue what borked it before! :)

Tutemlake:
I think I've found a bug of some sort.

The CC works fine as long as I don't change the GCC toolchain settings! Once I change them and restart CB, CC doesn't work anymore. The funny thing is that until I restart CB, it will work fine... I just can't exit CB again, or I'll have to remove the default.conf and set everything up again, to get it to work.

I've compared the working and not working default.confs:
working:

--- Code: --- <MASTER_PATH>
<str>
<![CDATA[D:\TDM-MinGW]]>
</str>
</MASTER_PATH>
NOTE: there are no C_COMPILER,etc. tags present here
--- End code ---

not working (after I've changed the toolchain settings and restarted CB):

--- Code: --- <MASTER_PATH>
<str>
<![CDATA[D:\TDM-MinGW-dw2]]>
</str>
</MASTER_PATH>
<C_COMPILER>
<str>
<![CDATA[mingw32-gcc-dw2.exe]]>
</str>
</C_COMPILER>
<CPP_COMPILER>
<str>
<![CDATA[mingw32-g++-dw2.exe]]>
</str>
</CPP_COMPILER>
<LINKER>
<str>
<![CDATA[mingw32-g++-dw2.exe]]>
</str>
</LINKER>
--- End code ---

I've also noticed that when CC works I get this in the Code::Blocks tab:

--- Code: ---Opening D:\test_OGRE\cb2\cb2.cbp
done
Create new parser for project 'cb2'
Project 'cb2' parsing stage done!
--- End code ---

vs. not working:

--- Code: ---Opening D:\test_OGRE\cb2\cb2.cbp
done
--- End code ---

ollydbg:
@Tutemlake, I'm not sure what exactly cause this issue you said. But did you try the latest revision (rev 7255), as recently loaden has fix a bug on getting Mingw predefined macros.

Tutemlake:
I've tried the latest nightly build (7257) and after some tinkering everything seems to be working fine!

Thank you CB team! :D

Navigation

[0] Message Index

[*] Previous page

Go to full version