Recent Posts

Pages: [1] 2 3 4 5 6 ... 10
1
I'm not sure I understand your question. What is the "Format use AStyle" context menu? What I did was go into setting>editor>Source Formatter and selected GNU from the panel on the left. I guess what I am trying to do is configure my editor so that it formats to the selected style in real time, as I am typing out the code. Is that a possibility in Code::Blocks? Also, I don't know if this is relevant, but the plugin menu says I have Source code formatter (AStyle) 2.05.1 enabled.

application screenshot
2
Using Code::Blocks / Re: CodeBlocks in Ubuntu XFCE
« Last post by oBFusCATed on Today at 01:10:03 am »
I rarely use the tree, most of the time I keep it hidden and just use alt-g to find files. :)
3
Are you using the "Format use Astyle" context menu command? Or do you expect the format to be preserved during normal editing?
4
I'm using version 17.12 of C::B, which I believe is the most current version and I am having trouble formatting my brackets.

Code written in the GNU bracket style is supposed to look like this:
Code: [Select]
int Foo(bool isBar)
{
  if (isBar)
    {
      bar();
      return 1;
    }
  else
    return 0;
}

But instead, my code auto-formats to this:
Code: [Select]
int Foo(bool isBar)
{
    if (isBar)
    {
        bar();
        return 1;
    }
    else
        return 0;
}
 

I've tried tweaking dozens of settings in the Configure Editor menu and the Source Formatter, but can't figure out how to get this to work.
5
Using Code::Blocks / Re: Profiling a library
« Last post by tigerbeard on Today at 12:32:42 am »
From the description is can connect to a live PID, which is good.
Wether it runs with a process which was not compiled for profiling, but is calling a DLL compiled for profiing is to be found out.
6
Using Code::Blocks / Re: Profiling a library
« Last post by BlueHazzard on Yesterday at 11:52:00 pm »
Profiling on windows is a pain in the a*** with open source tools... I had some success with "Very Sleepy" http://www.codersnotes.com/sleepy/ I don't know if you can profile dlls with it...
7
How i can put in #define tab if i have all library sources in my project?
Suppose i put like ...
Code: [Select]
is_debug = 0
pdf_is_standalone = 1
well i assume yes. But if "true" and "false" works in your old build, then it will also work in codeblocks
8
Using Code::Blocks / Re: Profiling a library
« Last post by tigerbeard on Yesterday at 11:05:12 pm »
Thanks great tip. Flame graphs made by that tool are really looking good to quickly get to the beef. I guess perf would fill in for missing stuff like hit counts etc. 
Only one tiny thing I forgot to mention: that libray in question is a windows DLL. Running in a Windows only environment (graphics, so no VM possible)
9
For example if i must run a cpp file with pdfium lib, pdfium lib made with ninja and some setting in settings file args.gn like...

Code: [Select]
is_debug = false
pdf_is_standalone = true

How i can put in #define tab if i have all library sources in my project?
Suppose i put like ...
Code: [Select]
is_debug = 0
pdf_is_standalone = 1

In source file we put all that as...

Code: [Select]
#define is_debug false
#define pdf_is_standalone true

Thank you
Jim
10
Using Code::Blocks / Re: Advice on Version for Ubuntu
« Last post by BlueHazzard on Yesterday at 10:47:55 pm »
you can try this instruction:
https://github.com/bluehazzard/codeblocks_sf/wiki/build_linux_mint_18

WARNING: this will build codeblocks with wx30
i do not know how to switch to wx2.8 if you have installed wx30 and wx28 with ./configure

to answer your question, you have to add
Code: [Select]
--with-contrib-plugins=all to your configure line

please report if it worked...

[Edit:] i updated with a section to build with wx2.8

Pages: [1] 2 3 4 5 6 ... 10