Results 1 to 1 of 1

Thread: Can't Compile ClanLib project?

  1. #1

    Default Can't Build ClanLib project?

    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:

    Code:
    c:\clanlib\include\clanlib\core\text\string_allocator.h(134) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    c:\clanlib\include\clanlib\core\text\string_allocator.h(134) : error C2143: syntax error : missing ';' before '<'
    c:\clanlib\include\clanlib\core\text\string_allocator.h(134) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\clanlib\include\clanlib\core\text\string_allocator.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_allocator.h(208) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    c:\clanlib\include\clanlib\core\system\block_allocator.h(208) : error C2143: syntax error : missing ';' before '<'
    c:\clanlib\include\clanlib\core\system\block_allocator.h(208) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\clanlib\include\clanlib\core\system\block_allocator.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_impl.h(57) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    c:\clanlib\include\clanlib\core\signals\signals_impl.h(57) : error C2143: syntax error : missing ';' before '<'
    c:\clanlib\include\clanlib\core\signals\signals_impl.h(57) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\clanlib\include\clanlib\core\signals\signals_impl.h(57) : error C2238: unexpected token(s) preceding ';'
    c:\clanlib\include\clanlib\core\signals\signals_impl.h(55) : error C2065: 'callback' : undeclared identifier
    c:\clanlib\include\clanlib\core\signals\signals_impl.h(55) : error C2065: 'callback' : undeclared identifier
    c:\clanlib\include\clanlib\core\signals\signals_impl.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_impl.h(65) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    c:\clanlib\include\clanlib\core\signals\signals_impl.h(65) : error C2065: 'shared_ptr' : undeclared identifier
    c:\clanlib\include\clanlib\core\signals\signals_impl.h(65) : error C2275: 'CL_SlotCallback' : illegal use of this type as an expression
            c:\clanlib\include\clanlib\core\signals\signals_impl.h(39) : see declaration of 'CL_SlotCallback'
    c:\clanlib\include\clanlib\core\signals\signals_impl.h(65) : error C2059: syntax error : '>'
    c:\clanlib\include\clanlib\core\signals\signals_impl.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(94) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    c:\clanlib\include\clanlib\core\system\service.h(94) : error C2143: syntax error : missing ';' before '<'
    c:\clanlib\include\clanlib\core\system\service.h(94) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\clanlib\include\clanlib\core\system\service.h(94) : error C2238: unexpected token(s) preceding ';'
    c:\clanlib\include\clanlib\core\system\thread.h(180) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    c:\clanlib\include\clanlib\core\system\thread.h(180) : error C2143: syntax error : missing ';' before '<'
    c:\clanlib\include\clanlib\core\system\thread.h(180) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\clanlib\include\clanlib\core\system\thread.h(180) : error C2238: unexpected token(s) preceding ';'
    c:\clanlib\include\clanlib\core\system\thread_local_storage.h(71) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    c:\clanlib\include\clanlib\core\system\thread_local_storage.h(71) : error C2143: syntax error : missing ';' before '<'
    c:\clanlib\include\clanlib\core\system\thread_local_storage.h(71) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\clanlib\include\clanlib\core\system\thread_local_storage.h(71) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\clanlib\include\clanlib\core\system\thread_local_storage.h(71) : error C2238: unexpected token(s) preceding ';'
    c:\clanlib\include\clanlib\core\system\thread_local_storage.h(80) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    c:\clanlib\include\clanlib\core\system\thread_local_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_v1.h(239) : error C2143: syntax error : missing ';' before '<'
            c:\clanlib\include\clanlib\core\signals\callback_v1.h(240) : see reference to class template instantiation 'CL_Callback_v1' being compiled
    c:\clanlib\include\clanlib\core\signals\callback_v1.h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\clanlib\include\clanlib\core\signals\callback_v1.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_key.h(133) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    c:\clanlib\include\clanlib\core\system\registry_key.h(133) : error C2143: syntax error : missing ';' before '<'
    c:\clanlib\include\clanlib\core\system\registry_key.h(133) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\clanlib\include\clanlib\core\system\registry_key.h(133) : error C2238: unexpected token(s) preceding ';'
    c:\clanlib\include\clanlib\core\system\registry_key.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_v0.h(236) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    c:\clanlib\include\clanlib\core\signals\callback_v0.h(236) : error C2143: syntax error : missing ';' before '<'
    c:\clanlib\include\clanlib\core\signals\callback_v0.h(236) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    c:\clanlib\include\clanlib\core\signals\callback_v0.h(236) : error C2238: unexpected token(s) preceding ';'
    c:\clanlib\include\clanlib\core\signals\callback_v0.h(164) : error C2039: 'impl' : is not a member of 'CL_Callback_v0'
            c:\clanlib\include\clanlib\core\signals\callback_v0.h(158) : see declaration of 'CL_Callback_v0'
    c:\clanlib\include\clanlib\core\signals\callback_v0.h(166) : error C2614: 'CL_Callback_v0' : illegal member initialization: 'impl' is not a base or member
    c:\clanlib\include\clanlib\core\signals\callback_v0.h(171) : error C2614: 'CL_Callback_v0' : illegal member initialization: 'impl' is not a base or member
    c:\clanlib\include\clanlib\core\signals\callback_v0.h(176) : error C2614: 'CL_Callback_v0' : illegal member initialization: 'impl' is not a base or member
    c:\clanlib\include\clanlib\core\signals\callback_v0.h(199) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    c:\clanlib\include\clanlib\core\signals\callback_v0.h(199) : error C2065: 'shared_ptr' : undeclared identifier
    c:\clanlib\include\clanlib\core\signals\callback_v0.h(199) : error C2275: 'CL_Callback_Impl_v0' : illegal use of this type as an expression
            c:\clanlib\include\clanlib\core\signals\callback_v0.h(40) : see declaration of 'CL_Callback_Impl_v0'
    c:\clanlib\include\clanlib\core\signals\callback_v0.h(222) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    c:\clanlib\include\clanlib\core\signals\callback_v0.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.
    Last edited by CloudVII; 12-13-2012 at 07:54 PM. Reason: Used Compile instead of Build, just noticed.

Similar Threads

  1. Installing ClanLib project files for something different than Visual C++?
    By Chuckleluck in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 12-09-2011, 11:16 PM
  2. Adding clanlib dependencies to a project
    By Topi in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 10-21-2011, 08:28 PM
  3. Clanlib 0.8 or 0.9 for new project
    By kbluck in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 09-06-2008, 09:25 PM
  4. Can't compile ClanLib on OpenBSD
    By zmyrgel in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 03-06-2008, 07:57 AM
  5. Is this the right project for ClanLib
    By someone in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 08-26-2007, 09:14 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •