Results 1 to 4 of 4

Thread: VS2008 Complaining about headers (new install)

  1. #1
    Serf
    Join Date
    Mar 2012
    Location
    Pensacola, FL
    Posts
    4

    Default VS2008 Complaining about headers (new install)

    Hello there. I've been wrestling with this for about an hour or so and haven't been able to find anyone in the forum with the same problems I've been having with a new install. I followed the instructions for an install (and double/tripled checked them), but to no avail, I keep having this problem. I've included the headers and library paths (as well as their external dependencies) and I have the project properties set up as laid out in the initial set up, yet when I compile the "hello world" example, it barfs with the following errors:

    Code:
    1>------ Build started: Project: test, Configuration: Debug Win32 ------
    1>Compiling...
    1>main.cpp
    1>c:\clanlib\include\clanlib\core\text\string_allocator.h(134) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\text\string_allocator.h(134) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\text\string_allocator.h(134) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\text\string_allocator.h(134) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\text\utf8_reader.h(84) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\text\utf8_reader.h(84) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\text\utf8_reader.h(84) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\text\utf8_reader.h(84) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\system\databuffer.h(110) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\system\databuffer.h(110) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\system\databuffer.h(110) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\system\databuffer.h(110) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\system\block_allocator.h(208) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\system\block_allocator.h(208) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\system\block_allocator.h(208) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\system\block_allocator.h(208) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\system\event.h(114) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\system\event.h(114) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\system\event.h(114) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\system\event.h(114) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\signals\signals_impl.h(57) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\signals\signals_impl.h(57) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\signals\signals_impl.h(57) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\signals\signals_impl.h(57) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\signals\signals_impl.h(55) : error C2065: 'callback' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\signals_impl.h(55) : error C2065: 'callback' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\signals_impl.h(55) : error C2227: left of '->valid' must point to class/struct/union/generic type
    1>        type is ''unknown-type''
    1>c:\clanlib\include\clanlib\core\signals\signals_impl.h(65) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\signals\signals_impl.h(65) : error C2065: 'shared_ptr' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\signals_impl.h(65) : error C2275: 'CL_SlotCallback' : illegal use of this type as an expression
    1>        c:\clanlib\include\clanlib\core\signals\signals_impl.h(39) : see declaration of 'CL_SlotCallback'
    1>c:\clanlib\include\clanlib\core\signals\signals_impl.h(65) : error C2059: syntax error : '>'
    1>c:\clanlib\include\clanlib\core\signals\signals_impl.h(65) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C2143: syntax error : missing ',' before '<'
    1>c:\clanlib\include\clanlib\core\signals\slot.h(82) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\signals\slot.h(82) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\signals\slot.h(82) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\signals\slot.h(82) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C2614: 'CL_Slot' : illegal member initialization: 'impl' is not a base or member
    1>c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C2065: 'impl' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\slot.h(49) : error C2227: left of '->callback' must point to class/struct/union/generic type
    1>        type is ''unknown-type''
    1>c:\clanlib\include\clanlib\core\signals\slot.h(60) : error C2065: 'impl' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\slot.h(60) : error C2065: 'impl' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\slot.h(60) : error C2227: left of '->callback' must point to class/struct/union/generic type
    1>        type is ''unknown-type''
    1>c:\clanlib\include\clanlib\core\signals\slot.h(61) : error C2065: 'impl' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\slot.h(61) : error C2227: left of '->callback' must point to class/struct/union/generic type
    1>        type is ''unknown-type''
    1>c:\clanlib\include\clanlib\core\signals\slot.h(61) : error C2227: left of '->valid' must point to class/struct/union/generic type
    1>c:\clanlib\include\clanlib\core\signals\slot.h(66) : error C2065: 'impl' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\slot.h(66) : error C2065: 'impl' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\slot.h(66) : error C2227: left of '->callback' must point to class/struct/union/generic type
    1>        type is ''unknown-type''
    1>c:\clanlib\include\clanlib\core\signals\slot.h(67) : error C2065: 'impl' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\slot.h(67) : error C2227: left of '->callback' must point to class/struct/union/generic type
    1>        type is ''unknown-type''
    1>c:\clanlib\include\clanlib\core\signals\slot.h(67) : error C2227: left of '->enabled' must point to class/struct/union/generic type
    1>c:\clanlib\include\clanlib\core\signals\slot.h(72) : error C2065: 'impl' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\slot.h(72) : error C2065: 'impl' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\slot.h(72) : error C2227: left of '->callback' must point to class/struct/union/generic type
    1>        type is ''unknown-type''
    1>c:\clanlib\include\clanlib\core\signals\slot.h(73) : error C2065: 'impl' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\slot.h(73) : error C2227: left of '->callback' must point to class/struct/union/generic type
    1>        type is ''unknown-type''
    1>c:\clanlib\include\clanlib\core\signals\slot.h(73) : error C2227: left of '->enabled' must point to class/struct/union/generic type
    1>c:\clanlib\include\clanlib\core\signals\signal_v1.h(212) : error C2143: syntax error : missing ';' before '<'
    1>        c:\clanlib\include\clanlib\core\signals\signal_v1.h(214) : see reference to class template instantiation 'CL_Signal_v1<Param1>' being compiled
    1>c:\clanlib\include\clanlib\core\signals\signal_v1.h(212) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\signals\signal_v1.h(212) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\system\service.h(94) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\system\service.h(94) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\system\service.h(94) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\system\service.h(94) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\system\thread.h(180) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\system\thread.h(180) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\system\thread.h(180) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\system\thread.h(180) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\system\thread_local_storage.h(71) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\system\thread_local_storage.h(71) : error C2143: syntax error : missing ';' before '<'
    1>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
    1>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
    1>c:\clanlib\include\clanlib\core\system\thread_local_storage.h(71) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\system\thread_local_storage.h(80) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\system\thread_local_storage.h(80) : error C2061: syntax error : identifier 'shared_ptr'
    1>c:\clanlib\include\clanlib\core\signals\callback_0.h(239) : error C2143: syntax error : missing ';' before '<'
    1>        c:\clanlib\include\clanlib\core\signals\callback_0.h(240) : see reference to class template instantiation 'CL_Callback_0<RetVal>' being compiled
    1>c:\clanlib\include\clanlib\core\signals\callback_0.h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\signals\callback_0.h(239) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\signals\callback_v1.h(239) : error C2143: syntax error : missing ';' before '<'
    1>        c:\clanlib\include\clanlib\core\signals\callback_v1.h(240) : see reference to class template instantiation 'CL_Callback_v1<P1>' being compiled
    1>c:\clanlib\include\clanlib\core\signals\callback_v1.h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\signals\callback_v1.h(239) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\signals\callback_2.h(239) : error C2143: syntax error : missing ';' before '<'
    1>        c:\clanlib\include\clanlib\core\signals\callback_2.h(240) : see reference to class template instantiation 'CL_Callback_2<RetVal,P1,P2>' being compiled
    1>c:\clanlib\include\clanlib\core\signals\callback_2.h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\signals\callback_2.h(239) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\system\keep_alive.h(96) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\system\keep_alive.h(96) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\system\keep_alive.h(96) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\system\keep_alive.h(96) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\system\timer.h(78) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\system\timer.h(78) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\system\timer.h(78) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\system\timer.h(78) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\system\registry_key.h(133) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\system\registry_key.h(133) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\system\registry_key.h(133) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\system\registry_key.h(133) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\system\registry_key.h(84) : error C2065: 'impl' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\callback_1.h(239) : error C2143: syntax error : missing ';' before '<'
    1>        c:\clanlib\include\clanlib\core\signals\callback_1.h(240) : see reference to class template instantiation 'CL_Callback_1<RetVal,P1>' being compiled
    1>c:\clanlib\include\clanlib\core\signals\callback_1.h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\signals\callback_1.h(239) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\signals\callback_3.h(239) : error C2143: syntax error : missing ';' before '<'
    1>        c:\clanlib\include\clanlib\core\signals\callback_3.h(240) : see reference to class template instantiation 'CL_Callback_3<RetVal,P1,P2,P3>' being compiled
    1>c:\clanlib\include\clanlib\core\signals\callback_3.h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\signals\callback_3.h(239) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\signals\callback_4.h(239) : error C2143: syntax error : missing ';' before '<'
    1>        c:\clanlib\include\clanlib\core\signals\callback_4.h(240) : see reference to class template instantiation 'CL_Callback_4<RetVal,P1,P2,P3,P4>' being compiled
    1>c:\clanlib\include\clanlib\core\signals\callback_4.h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\signals\callback_4.h(239) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\signals\callback_5.h(239) : error C2143: syntax error : missing ';' before '<'
    1>        c:\clanlib\include\clanlib\core\signals\callback_5.h(240) : see reference to class template instantiation 'CL_Callback_5<RetVal,P1,P2,P3,P4,P5>' being compiled
    1>c:\clanlib\include\clanlib\core\signals\callback_5.h(239) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\signals\callback_5.h(239) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\signals\callback_v0.h(236) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\signals\callback_v0.h(236) : error C2143: syntax error : missing ';' before '<'
    1>c:\clanlib\include\clanlib\core\signals\callback_v0.h(236) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\clanlib\include\clanlib\core\signals\callback_v0.h(236) : error C2238: unexpected token(s) preceding ';'
    1>c:\clanlib\include\clanlib\core\signals\callback_v0.h(164) : error C2039: 'impl' : is not a member of 'CL_Callback_v0'
    1>        c:\clanlib\include\clanlib\core\signals\callback_v0.h(158) : see declaration of 'CL_Callback_v0'
    1>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
    1>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
    1>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
    1>c:\clanlib\include\clanlib\core\signals\callback_v0.h(199) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\signals\callback_v0.h(199) : error C2065: 'shared_ptr' : undeclared identifier
    1>c:\clanlib\include\clanlib\core\signals\callback_v0.h(199) : error C2275: 'CL_Callback_Impl_v0' : illegal use of this type as an expression
    1>        c:\clanlib\include\clanlib\core\signals\callback_v0.h(40) : see declaration of 'CL_Callback_Impl_v0'
    1>c:\clanlib\include\clanlib\core\signals\callback_v0.h(222) : error C2039: 'shared_ptr' : is not a member of 'std::tr1'
    1>c:\clanlib\include\clanlib\core\signals\callback_v0.h(222) : fatal error C1003: error count exceeds 100; stopping compilation
    1>Build log was saved at "file://c:\root\documents\VStudios\test\test\Debug\BuildLog.htm"
    1>test - 126 error(s), 0 warning(s)
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    It's almost as if something else is missing rather than the ClanLib headers/libraries. It doesn't matter which example I use, I get the same errors. It seems to be coming from the "core.h" header file. Any suggestions? I recently installed the latest windows sdk (I'm running Windows 7 64-bit) and my VS2008. Configuring VS is always a pain.

  2. #2
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,773

    Default

    Run - http://www.microsoft.com/download/en....aspx?id=10986
    "Microsoft Visual Studio 2008 Service Pack 1"

    This is different to the windows service packs.

    std::tr1::shared_ptr was introduced into Visual Studio 2008 in Service pack 1

  3. #3
    Serf
    Join Date
    Mar 2012
    Location
    Pensacola, FL
    Posts
    4

    Default

    Quote Originally Posted by rombust View Post
    Run - http://www.microsoft.com/download/en....aspx?id=10986
    "Microsoft Visual Studio 2008 Service Pack 1"

    This is different to the windows service packs.

    std::tr1::shared_ptr was introduced into Visual Studio 2008 in Service pack 1
    Odd, judging by what it says under the "About" section in VS, I thought it was SP1, but that must be the SP for .net. I'm downloading and installing it now, but have to run to work. I'll be able to check it when I get home later today. Thanks for pointing that out!

  4. #4
    Serf
    Join Date
    Mar 2012
    Location
    Pensacola, FL
    Posts
    4

    Default

    Well, that worked out! Thanks for the help.

Similar Threads

  1. using automake with gcc precompiled headers experiment
    By rombust in forum ClanLib: Developer Chat
    Replies: 2
    Last Post: 11-25-2011, 05:48 PM
  2. ClanLib 2.1.1 headers and GCC -pedantic
    By rombust in forum ClanLib: Developer Chat
    Replies: 5
    Last Post: 12-26-2009, 08:55 AM
  3. Replies: 4
    Last Post: 11-09-2009, 09:39 PM
  4. Getting Clanlib running w' VS2008?
    By jwilk in forum ClanLib: Help
    Replies: 13
    Last Post: 01-30-2009, 01:21 PM
  5. Errors in ClanLib headers
    By mmiikkee12 in forum ClanLib: Help
    Replies: 1
    Last Post: 09-03-2007, 08:17 AM

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
  •