Author Topic: Problem with customized folding point  (Read 2939 times)

Offline meouda

  • Single posting newcomer
  • *
  • Posts: 3
Problem with customized folding point
« on: August 24, 2016, 12:15:29 pm »
Dear all,

I am trying to use the customized folding point to collapse a commented block. According to Code::Blocks user manual to create a user defined folding points we use something like that

Code
// {
int a= 0;
// }

But this will not generate a new folding point unless we remove the two comment marks, so the  code will looks like:

Code
{
int a= 0;
}

Unfortunately this will produce the following compiling error:

Quote
error: expected unqualified-id before '{' token|

Any suggestions?

I am using Code::Blocks 16.01 on Windows 7 x64.

Best regards.
« Last Edit: August 24, 2016, 04:03:57 pm by meouda »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Problem with customized folding point
« Reply #1 on: August 24, 2016, 10:34:07 pm »
Remove the blank between the comment and the braces.

Offline meouda

  • Single posting newcomer
  • *
  • Posts: 3
Re: Problem with customized folding point
« Reply #2 on: August 25, 2016, 02:24:09 am »
I did , but unfortunately still not working (see attached screenshot)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Problem with customized folding point
« Reply #3 on: August 25, 2016, 05:58:21 am »
What's the exact name of the file (especially which file-ending has it) ?

Offline meouda

  • Single posting newcomer
  • *
  • Posts: 3
Re: Problem with customized folding point
« Reply #4 on: August 26, 2016, 02:07:57 am »
the file full name is: CVector.cpp

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Problem with customized folding point
« Reply #5 on: August 28, 2016, 02:36:29 pm »
A full rebuild log would help us to help you:
http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_(general)#Q:_How_do_I_report_a_compilation_problem_on_the_forums.3F

also:
What's the exact name of the file (especially which file-ending has it) ?