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


// {
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:


{
int a= 0;
}


Unfortunately this will produce the following compiling error:

Quoteerror: 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:
Quote from: jens on August 25, 2016, 05:58:21 AM
What's the exact name of the file (especially which file-ending has it) ?