Menu

#3 Compilation on MSVC 6

open
nobody
None
5
2004-02-15
2004-02-15
No

Commenting out the offending line resolved the problem.
Can't be sure if DevStudio 6 has all service packs
installed,
will confirm on another system shortly.

Regards,

Nigel Stewart

--------------------Configuration: OpenThreads - Win32
Release--------------------
Compiling...
Win32Thread.cpp
D:\temp\OpenThreads\win32_src\Win32Thread.cpp(25) :
error C2039: 'size_t' : is not a member of 'std'
D:\temp\OpenThreads\win32_src\Win32Thread.cpp(25) :
error C2868: 'size_t' : illegal syntax for
using-declaration; expected qualified-name
Error executing cl.exe.

OpenThreadsWin32.dll - 2 error(s), 0 warning(s)
--------------------Configuration: OpenThreads - Win32
Debug--------------------
Compiling...
Win32Thread.cpp
d:\temp\openthreads\win32_src\win32thread.cpp(25) :
error C2039: 'size_t' : is not a member of 'std'
d:\temp\openthreads\win32_src\win32thread.cpp(25) :
error C2868: 'size_t' : illegal syntax for
using-declaration; expected qualified-name
Error executing cl.exe.

OpenThreadsWin32d.dll - 2 error(s), 0 warning(s)

Discussion

  • Nigel Stewart

    Nigel Stewart - 2004-02-15

    Logged In: YES
    user_id=338692

    OpenThreads bundled with OSG_OP_OT
    is having the same problem. (Eventhough
    the source is fairly different)

     
  • Nigel Stewart

    Nigel Stewart - 2004-02-16

    Logged In: YES
    user_id=338692

    Everything compiles fine with STLPort, it seems to be
    the broken STL with DevStudio that is breaking the
    build.

     
  • Boris Bralo

    Boris Bralo - 2004-02-27

    Logged In: YES
    user_id=827171

    at the begining of file :

    #if defined(_MSC_VER) && _MSC_VER <= 1300 // up to
    VC7.0
    #ifdef __SGI_STL // STLport has is right
    using std::size_t;
    #endif
    #else
    using std::size_t;
    #endif

     

Log in to post a comment.