If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

error: ‘shared_ptr’ in namespace ‘std’ does not name a type

But when I compile it (I use Netbeans 6.9) I get a LONG list of error messages that mostly contain this line (or variations of it with other ClanLib files):

Code:

from main.cpp:1:
In file included from /usr/local/include/ClanLib/core.h:69:0,
/usr/local/include/ClanLib/Core/Text/string_allocator.h:134:2: error: ‘shared_ptr’ in namespace ‘std’ does not name a type

Any ideas what's going wrong? Apart from shared_ptr not having a type.

I don't know much about makefiles (only what they do), so I don't know where to add -std=c++0x in it, so I added itt to the Additional Options under C++ compiler for the project & now I'm getting a different error (excuse the length):

Not the header he meant the actual library (.lib or .o depending). Unfortunately i never really messed with makefile so I can't really tell you where to link the library, in an IDE like code blocks there is a place in settings where you can add the name of the library to link. But i guess a quick google search could help you figure out what to add to the makefile.