PDA

View Full Version : Can't Compile ClanLib project?



CloudVII
12-11-2012, 04:37 PM
Hi all. So I've been trying for the last few hours to Build the Hello World example(both versions) to validate that I installed ClanLib correctly, but to no avail. I downloaded the pre-compiled binaries(32-bit) version of 2.3.6 for Visual Studio 2008 SP1.
I've situated Clanlib directly at C:\Clanlib.
I also have placed the Dependency Libraries for ClanLib directly within Include and Lib\Win32.
I've also tried compiling the source code version and building it in that, but too no avail.

Everytime I try to build and run the example I get this:


c:\clanlib\include\clanlib\core\text\string_alloca tor.h(134) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\text\string_alloca tor.h(134) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\text\string_alloca tor.h(134) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\text\string_alloca tor.h(134) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\text\utf8_reader.h (84) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\text\utf8_reader.h (84) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\text\utf8_reader.h (84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\text\utf8_reader.h (84) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\system\databuffer. h(110) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\system\databuffer. h(110) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\system\databuffer. h(110) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\system\databuffer. h(110) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\system\block_alloc ator.h(208) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\system\block_alloc ator.h(208) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\system\block_alloc ator.h(208) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\system\block_alloc ator.h(208) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\system\event.h(114 ) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\system\event.h(114 ) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\system\event.h(114 ) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\system\event.h(114 ) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(57) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(57) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(57) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(57) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(55) : error C2065: 'callback' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(55) : error C2065: 'callback' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(55) : error C2227: left of '->valid' must point to class/struct/union/generic type
type is ''unknown-type''
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(65) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(65) : error C2065: 'shared_ptr' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(65) : error C2275: 'CL_SlotCallback' : illegal use of this type as an expression
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(39) : see declaration of 'CL_SlotCallback'
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(65) : error C2059: syntax error : '>'
c:\clanlib\include\clanlib\core\signals\signals_im pl.h(65) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C2143: syntax error : missing ',' before '<'
c:\clanlib\include\clanlib\core\signals\slot.h(82) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\signals\slot.h(82) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\signals\slot.h(82) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\signals\slot.h(82) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C2614: 'CL_Slot' : illegal member initialization: 'impl' is not a base or member
c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C2065: 'impl' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C2227: left of '->callback' must point to class/struct/union/generic type
type is ''unknown-type''
c:\clanlib\include\clanlib\core\signals\slot.h(60) : error C2065: 'impl' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\slot.h(60) : error C2065: 'impl' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\slot.h(60) : error C2227: left of '->callback' must point to class/struct/union/generic type
type is ''unknown-type''
c:\clanlib\include\clanlib\core\signals\slot.h(61) : error C2065: 'impl' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\slot.h(61) : error C2227: left of '->callback' must point to class/struct/union/generic type
type is ''unknown-type''
c:\clanlib\include\clanlib\core\signals\slot.h(61) : error C2227: left of '->valid' must point to class/struct/union/generic type
c:\clanlib\include\clanlib\core\signals\slot.h(66) : error C2065: 'impl' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\slot.h(66) : error C2065: 'impl' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\slot.h(66) : error C2227: left of '->callback' must point to class/struct/union/generic type
type is ''unknown-type''
c:\clanlib\include\clanlib\core\signals\slot.h(67) : error C2065: 'impl' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\slot.h(67) : error C2227: left of '->callback' must point to class/struct/union/generic type
type is ''unknown-type''
c:\clanlib\include\clanlib\core\signals\slot.h(67) : error C2227: left of '->enabled' must point to class/struct/union/generic type
c:\clanlib\include\clanlib\core\signals\slot.h(72) : error C2065: 'impl' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\slot.h(72) : error C2065: 'impl' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\slot.h(72) : error C2227: left of '->callback' must point to class/struct/union/generic type
type is ''unknown-type''
c:\clanlib\include\clanlib\core\signals\slot.h(73) : error C2065: 'impl' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\slot.h(73) : error C2227: left of '->callback' must point to class/struct/union/generic type
type is ''unknown-type''
c:\clanlib\include\clanlib\core\signals\slot.h(73) : error C2227: left of '->enabled' must point to class/struct/union/generic type
c:\clanlib\include\clanlib\core\signals\signal_v1. h(212) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\signals\signal_v1. h(214) : see reference to class template instantiation 'CL_Signal_v1' being compiled
c:\clanlib\include\clanlib\core\signals\signal_v1. h(212) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\signals\signal_v1. h(212) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\system\service.h(9 4) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\system\service.h(9 4) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\system\service.h(9 4) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\system\service.h(9 4) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\system\thread.h(18 0) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\system\thread.h(18 0) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\system\thread.h(18 0) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\system\thread.h(18 0) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\system\thread_loca l_storage.h(71) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\system\thread_loca l_storage.h(71) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\system\thread_loca l_storage.h(71) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\system\thread_loca l_storage.h(71) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\system\thread_loca l_storage.h(71) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\system\thread_loca l_storage.h(80) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\system\thread_loca l_storage.h(80) : error C2061: syntax error : identifier 'shared_ptr'
c:\clanlib\include\clanlib\core\signals\callback_0 .h(239) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\signals\callback_0 .h(240) : see reference to class template instantiation 'CL_Callback_0' being compiled
c:\clanlib\include\clanlib\core\signals\callback_0 .h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\signals\callback_0 .h(239) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\signals\callback_v 1.h(239) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\signals\callback_v 1.h(240) : see reference to class template instantiation 'CL_Callback_v1' being compiled
c:\clanlib\include\clanlib\core\signals\callback_v 1.h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\signals\callback_v 1.h(239) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\signals\callback_2 .h(239) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\signals\callback_2 .h(240) : see reference to class template instantiation 'CL_Callback_2' being compiled
c:\clanlib\include\clanlib\core\signals\callback_2 .h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\signals\callback_2 .h(239) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\system\keep_alive. h(96) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\system\keep_alive. h(96) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\system\keep_alive. h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\system\keep_alive. h(96) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\system\timer.h(78) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\system\timer.h(78) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\system\timer.h(78) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\system\timer.h(78) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\system\registry_ke y.h(133) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\system\registry_ke y.h(133) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\system\registry_ke y.h(133) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\system\registry_ke y.h(133) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\system\registry_ke y.h(84) : error C2065: 'impl' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\callback_1 .h(239) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\signals\callback_1 .h(240) : see reference to class template instantiation 'CL_Callback_1' being compiled
c:\clanlib\include\clanlib\core\signals\callback_1 .h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\signals\callback_1 .h(239) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\signals\callback_3 .h(239) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\signals\callback_3 .h(240) : see reference to class template instantiation 'CL_Callback_3' being compiled
c:\clanlib\include\clanlib\core\signals\callback_3 .h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\signals\callback_3 .h(239) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\signals\callback_4 .h(239) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\signals\callback_4 .h(240) : see reference to class template instantiation 'CL_Callback_4' being compiled
c:\clanlib\include\clanlib\core\signals\callback_4 .h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\signals\callback_4 .h(239) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\signals\callback_5 .h(239) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\signals\callback_5 .h(240) : see reference to class template instantiation 'CL_Callback_5' being compiled
c:\clanlib\include\clanlib\core\signals\callback_5 .h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\signals\callback_5 .h(239) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(236) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(236) : error C2143: syntax error : missing ';' before '<'
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(236) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(236) : error C2238: unexpected token(s) preceding ';'
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(164) : error C2039: 'impl' : is not a member of 'CL_Callback_v0'
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(158) : see declaration of 'CL_Callback_v0'
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(166) : error C2614: 'CL_Callback_v0' : illegal member initialization: 'impl' is not a base or member
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(171) : error C2614: 'CL_Callback_v0' : illegal member initialization: 'impl' is not a base or member
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(176) : error C2614: 'CL_Callback_v0' : illegal member initialization: 'impl' is not a base or member
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(199) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(199) : error C2065: 'shared_ptr' : undeclared identifier
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(199) : error C2275: 'CL_Callback_Impl_v0' : illegal use of this type as an expression
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(40) : see declaration of 'CL_Callback_Impl_v0'
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(222) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
c:\clanlib\include\clanlib\core\signals\callback_v 0.h(222) : fatal error C1003: error count exceeds 100; stopping compilation

The errors seem to reference Clanlib itself, and not my project, so I don't know where I messed up?
If anyone could help, It'd be greatly appreciated!

EDIT:
It should also be noted I am running Windows 7 Ultimate(64-Bit).

EDIT2:
Erp, sorry, was this the wrong category to ask in? I just noticed the developer chat category. :\

EDIT3:
Just noticed I used Compile instead of Build in the title. Whoops.