User forums > Using Code::Blocks

CC: does not list "allocate", a member function of std::allocator.

<< < (3/5) > >>

edison:
There is not change here when using CB 13.12 and TDM-GCC 4.7.1.

I will try SVN 9906 + TDM-GCC 4.8.1 latter.

edison:
I think I have found out what cause this problem

when I use the fresh built SVN 9906, all works fine.

but when I trans the old GCC compiler to the new CB default.conf, the problem appear again.

here is the old .conf which seems cause this problem.

edison:
When I enable the -std=c++11 in Compiler settings, then close the project and re-open the project, the problem appear again. @_@

update:
I had did some double check test, now I can confirm when enabled the -std=c++11(and -std=gnu++11 ) setting (in project's build option or cb's compiler settings ) will cause "allocate()" of allocator not show in the list.

why the gcc compiler switch affect the CC @_@ It's strange...

Jenna:

--- Quote from: edison on September 04, 2014, 07:35:59 pm ---When I enable the -std=c++11 in Compiler settings, then close the project and re-open the project, the problem appear again. @_@

update:
I had did some double check test, now I can confirm when enabled the -std=c++11(and -std=gnu++11 ) setting (in project's build option or cb's compiler settings ) will cause "allocate()" of allocator not show in the list.

--- End quote ---

Still works here, egally where I add the flags (in project or globally).

edison:

--- Quote from: jens on September 04, 2014, 08:31:36 pm ---Still works here, egally where I add the flags (in project or globally).

--- End quote ---

When I set the flag, close CB and re-run CB, then open the project, the allocate() of CC does not work.

My Ubuntu had something wrong, I will try it latter.

update:
When my project use Clang as compiler, the allocate() CC works even -std=c++11 option was checked.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version