Code::Blocks Forums

User forums => Help => Topic started by: meouda on August 24, 2016, 12:15:29 pm

Title: Problem with customized folding point
Post by: meouda 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.
Title: Re: Problem with customized folding point
Post by: Jenna on August 24, 2016, 10:34:07 pm
Remove the blank between the comment and the braces.
Title: Re: Problem with customized folding point
Post by: meouda on August 25, 2016, 02:24:09 am
I did , but unfortunately still not working (see attached screenshot)
Title: Re: Problem with customized folding point
Post by: Jenna on August 25, 2016, 05:58:21 am
What's the exact name of the file (especially which file-ending has it) ?
Title: Re: Problem with customized folding point
Post by: meouda on August 26, 2016, 02:07:57 am
the file full name is: CVector.cpp
Title: Re: Problem with customized folding point
Post by: BlueHazzard 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) ?