User forums > Using Code::Blocks

Using std::tr1::memory with code::blocks

(1/1)

Tihtinen:
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.

oBFusCATed:
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....

Navigation

[0] Message Index

Go to full version