Author Topic: Using std::tr1::memory with code::blocks  (Read 5838 times)

Tihtinen

  • Guest
Using std::tr1::memory with code::blocks
« on: March 30, 2010, 09:51:03 pm »
Hello, I was not completely sure if this is more of a direct programming issue, but anyway.

I've been using g++ -compiler in another situations and been succesful in using for example shared pointers simply by using "#include <tr1/memory>". When I try the same with code::blocks and the default GCC it uses, I get the error "tr1/memory: No such file or directory".

This is a stupid question, I believe, but this is bugging me to no end so please help :D

Thanks in advance.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Using std::tr1::memory with code::blocks
« Reply #1 on: March 30, 2010, 09:56:48 pm »
Read the faq -> http://wiki.codeblocks.org/index.php?title=FAQ#Q:_What_Code::Blocks_is_not.3F

So, the answer is you need newer gcc (>4.0), the default is 3.4.x....
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]