News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

code statistics plugin - project is empty!

Started by Story, October 12, 2011, 02:48:56 AM

Previous topic - Next topic

Story

I have a project that was initially empty, but I added the PuTTy source to it using the recursive add option. I am trying to use the code statistics plugin, but no matter what I do, it just pops up a message saying the project is empty, even though it clearly isn't. I've tried saving the project, and restarting Code::Blocks, but it still won't work. What should I do?

Alpha

If you try to build, does Code::Blocks succeed in compilation?

Story

No (it complains about a missing header file)

ollydbg

I don't have such problem.
So would you show/share your project files then I can test for you.
Which version of CB did you use? I suggest you can try a latest nightly build version.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

MortenMacFly

Quote from: Story on October 12, 2011, 02:48:56 AM
I have a project that was initially empty, but I added the PuTTy source to it using the recursive add option.
This won't work, as the sources also contain platform specific stuff, so you are mixing incompatible files and surely you won't find e.g. MacOS SDK files on a Windows platform. Instead, use the Dev++ project tat ships with the sources you can download (nor checkout!) and import this project. You'll need a few adjustments depending on your compiler (i.e. if its >4.6.x) and you are done.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]