VC6 & 0.301 + v7.0 + stlport 4.5.3 + Errors :)

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

SKIL
Posts: 10
Joined: 2003-11-10 11:50

VC6 & 0.301 + v7.0 + stlport 4.5.3 + Errors :)

Post by SKIL » 2003-11-10 14:18

I like your program very much, but i would like to develop it further on my own. Therefore, i have downloaded the sourcecode, the source extras, and start compiling.

A terrible error has come in my way in thread.h, at some _STL constants. Unfortunatly, it does not look like anyother errors posted here, so no topics helped me in solving this.

Operating System: Windows 2003 Server Trial + .NET 1.1 + .NET SDK 1.1

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

Post by GargoyleMT » 2003-11-10 17:36

It would benefit you if you were specific.

SKIL
Posts: 10
Joined: 2003-11-10 11:50

Post by SKIL » 2003-11-13 09:58

There are the errors:

Code: Select all

--------------------Configuration: client - Win32 Debug--------------------
Compiling...
stdinc.cpp
NOTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications.  To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.
c:\inc2\stlport\cstddef(40) : error C2039: 'ptrdiff_t' : is not a member of '`global namespace''
c:\inc2\stlport\cstddef(40) : error C2873: 'ptrdiff_t' : symbol cannot be used in a using-declaration
c:\inc2\stlport\cstdlib(42) : error C2039: 'div_t' : is not a member of '`global namespace''
c:\inc2\stlport\cstdlib(42) : error C2873: 'div_t' : symbol cannot be used in a using-declaration
c:\inc2\stlport\cstdlib(43) : error C2039: 'ldiv_t' : is not a member of '`global namespace''
c:\inc2\stlport\cstdlib(43) : error C2873: 'ldiv_t' : symbol cannot be used in a using-declaration
c:\inc2\stlport\stl\_iterator_base.h(222) : error C2143: syntax error : missing ';' before '*'
c:\inc2\stlport\stl\_iterator_base.h(222) : error C2433: 'ptrdiff_t' : 'inline' not permitted on data declarations
c:\inc2\stlport\stl\_iterator_base.h(222) : error C2501: 'ptrdiff_t' : missing storage-class or type specifiers
c:\inc2\stlport\stl\_iterator_base.h(222) : error C2059: syntax error : ';'
c:\inc2\stlport\stl\_iterator_base.h(222) : error C2143: syntax error : missing ',' before '*'
c:\inc2\stlport\stl\_iterator_base.h(222) : error C2059: syntax error : '*'
c:\inc2\stlport\stl\_iterator_base.h(230) : error C2954: template definitions cannot nest
c:\inc2\stlport\stl\_iterator_base.h(315) : error C2143: syntax error : missing ';' before '__cdecl'
c:\inc2\stlport\stl\_iterator_base.h(315) : error C2433: 'ptrdiff_t' : 'inline' not permitted on data declarations
c:\inc2\stlport\stl\_iterator_base.h(315) : error C2501: 'ptrdiff_t' : missing storage-class or type specifiers
c:\inc2\stlport\stl\_iterator_base.h(315) : error C2086: 'ptrdiff_t' : redefinition
c:\inc2\stlport\stl\_iterator_base.h(315) : error C2059: syntax error : ';'
c:\inc2\stlport\stl\_iterator_base.h(316) : error C2143: syntax error : missing ',' before '&'
c:\inc2\stlport\stl\_iterator_base.h(316) : error C2059: syntax error : '&'
c:\inc2\stlport\stl\_iterator_base.h(353) : error C2954: template definitions cannot nest
c:\inc2\stlport\stl\_iterator_base.h(354) : error C2143: syntax error : missing ';' before '__cdecl'
c:\inc2\stlport\stl\_iterator_base.h(354) : error C2433: 'ptrdiff_t' : 'inline' not permitted on data declarations
c:\inc2\stlport\stl\_iterator_base.h(354) : error C2501: 'ptrdiff_t' : missing storage-class or type specifiers
c:\inc2\stlport\stl\_iterator_base.h(354) : error C2086: 'ptrdiff_t' : redefinition
c:\inc2\stlport\stl\_iterator_base.h(354) : error C2059: syntax error : ';'
c:\inc2\stlport\stl\_iterator_base.h(355) : error C2143: syntax error : missing ',' before '&'
c:\inc2\stlport\stl\_iterator_base.h(355) : error C2059: syntax error : '&'
c:\inc2\stlport\stl\_iterator_base.h(360) : error C2954: template definitions cannot nest
c:\inc2\stlport\stl\_iterator_base.h(361) : error C2143: syntax error : missing ';' before '__cdecl'
c:\inc2\stlport\stl\_iterator_base.h(361) : error C2433: 'ptrdiff_t' : 'inline' not permitted on data declarations
c:\inc2\stlport\stl\_iterator_base.h(361) : error C2501: 'ptrdiff_t' : missing storage-class or type specifiers
c:\inc2\stlport\stl\_iterator_base.h(361) : error C2086: 'ptrdiff_t' : redefinition
c:\inc2\stlport\stl\_iterator_base.h(361) : error C2059: syntax error : ';'
c:\inc2\stlport\stl\_iterator_base.h(362) : error C2143: syntax error : missing ',' before '&'
c:\inc2\stlport\stl\_iterator_base.h(362) : error C2059: syntax error : '&'
c:\inc2\stlport\stl\_iterator_base.h(368) : error C2954: template definitions cannot nest
c:\inc2\stlport\stl\_algobase.h(183) : error C2146: syntax error : missing ';' before identifier '_Num'
c:\inc2\stlport\stl\_algobase.h(183) : error C2734: 'ptrdiff_t' : const object must be initialized if not extern
c:\inc2\stlport\stl\_algobase.h(183) : error C2065: '_Num' : undeclared identifier
c:\inc2\stlport\stl\_algobase.h(493) : error C2146: syntax error : missing ';' before identifier '__len1'
c:\inc2\stlport\stl\_algobase.h(493) : error C2734: 'ptrdiff_t' : const object must be initialized if not extern
c:\inc2\stlport\stl\_algobase.h(493) : error C2065: '__len1' : undeclared identifier
c:\inc2\stlport\stl\_algobase.h(494) : error C2146: syntax error : missing ';' before identifier '__len2'
c:\inc2\stlport\stl\_algobase.h(494) : error C2734: 'ptrdiff_t' : const object must be initialized if not extern
c:\inc2\stlport\stl\_algobase.h(494) : error C2086: 'ptrdiff_t' : redefinition
c:\inc2\stlport\stl\_algobase.h(494) : error C2065: '__len2' : undeclared identifier
c:\inc2\stlport\stl\_algobase.h(524) : error C2146: syntax error : missing ';' before identifier 'count'
c:\inc2\stlport\stl\_algobase.h(524) : error C2433: 'ptrdiff_t' : 'inline' not permitted on data declarations
c:\inc2\stlport\stl\_algobase.h(524) : error C2501: 'ptrdiff_t' : missing storage-class or type specifiers
c:\inc2\stlport\stl\_algobase.h(524) : error C2086: 'ptrdiff_t' : redefinition
c:\inc2\stlport\stl\_algobase.h(524) : error C2059: syntax error : ';'
c:\inc2\stlport\stl\_algobase.h(524) : error C2065: '_InputIter' : undeclared identifier
c:\inc2\stlport\stl\_algobase.h(524) : error C2146: syntax error : missing ')' before identifier '__first'
c:\inc2\stlport\stl\_algobase.h(524) : error C2501: 'count' : missing storage-class or type specifiers
c:\inc2\stlport\stl\_algobase.h(524) : error C2059: syntax error : ')'
c:\inc2\stlport\stl\_algobase.h(536) : error C2954: template definitions cannot nest
c:\inc2\stlport\new(44) : error C2039: 'bad_alloc' : is not a member of 'std'
c:\inc2\stlport\new(44) : error C2873: 'bad_alloc' : symbol cannot be used in a using-declaration
c:\inc2\stlport\new(45) : error C2039: 'nothrow_t' : is not a member of 'std'
c:\inc2\stlport\new(45) : error C2873: 'nothrow_t' : symbol cannot be used in a using-declaration
c:\inc2\stlport\new(46) : error C2039: 'nothrow' : is not a member of 'std'
c:\inc2\stlport\new(46) : error C2873: 'nothrow' : symbol cannot be used in a using-declaration
c:\inc2\stlport\new(49) : error C2039: 'new_handler' : is not a member of '`global namespace''
c:\inc2\stlport\new(49) : error C2873: 'new_handler' : symbol cannot be used in a using-declaration
c:\inc2\stlport\new(50) : error C2039: 'set_new_handler' : is not a member of '`global namespace''
c:\inc2\stlport\new(50) : error C2873: 'set_new_handler' : symbol cannot be used in a using-declaration
c:\inc2\stlport\stl\_tempbuf.h(46) : error C2974: 'pair' : invalid template argument for '_T2', type expected
        c:\inc2\stlport\stl\_pair.h(57) : see declaration of 'pair'
c:\inc2\stlport\stl\_tempbuf.h(47) : error C2061: syntax error : identifier 'ptrdiff_t'
c:\inc2\stlport\stl\_tempbuf.h(52) : error C2974: 'pair' : invalid template argument for '_T2', type expected
        c:\inc2\stlport\stl\_pair.h(57) : see declaration of 'pair'
c:\inc2\stlport\stl\_tempbuf.h(52) : error C2061: syntax error : identifier 'ptrdiff_t'
c:\inc2\stlport\stl\_tempbuf.h(63) : error C2974: 'pair' : invalid template argument for '_T2', type expected
        c:\inc2\stlport\stl\_pair.h(57) : see declaration of 'pair'
c:\inc2\stlport\stl\_tempbuf.h(64) : error C2061: syntax error : identifier 'ptrdiff_t'
c:\inc2\stlport\stl\_tempbuf.h(66) : error C2995: 'get_temporary_buffer' : template function has already been defined
        c:\inc2\stlport\stl\_tempbuf.h(52) : see declaration of 'get_temporary_buffer'
c:\inc2\stlport\stl\_tempbuf.h(79) : error C2146: syntax error : missing ';' before identifier '_M_original_len'
        c:\inc2\stlport\stl\_tempbuf.h(134) : see reference to class template instantiation '_STL::_Temporary_buffer<_ForwardIterator,_Tp>' being compiled
c:\inc2\stlport\stl\_tempbuf.h(79) : error C2501: 'ptrdiff_t' : missing storage-class or type specifiers
        c:\inc2\stlport\stl\_tempbuf.h(134) : see reference to class template instantiation '_STL::_Temporary_buffer<_ForwardIterator,_Tp>' being compiled
c:\inc2\stlport\stl\_tempbuf.h(79) : error C2501: '_M_original_len' : missing storage-class or type specifiers
        c:\inc2\stlport\stl\_tempbuf.h(134) : see reference to class template instantiation '_STL::_Temporary_buffer<_ForwardIterator,_Tp>' being compiled
c:\inc2\stlport\stl\_tempbuf.h(80) : error C2146: syntax error : missing ';' before identifier '_M_len'
        c:\inc2\stlport\stl\_tempbuf.h(134) : see reference to class template instantiation '_STL::_Temporary_buffer<_ForwardIterator,_Tp>' being compiled
c:\inc2\stlport\stl\_tempbuf.h(80) : error C2501: 'ptrdiff_t' : missing storage-class or type specifiers
        c:\inc2\stlport\stl\_tempbuf.h(134) : see reference to class template instantiation '_STL::_Temporary_buffer<_ForwardIterator,_Tp>' being compiled
c:\inc2\stlport\stl\_tempbuf.h(80) : error C2501: '_M_len' : missing storage-class or type specifiers
        c:\inc2\stlport\stl\_tempbuf.h(134) : see reference to class template instantiation '_STL::_Temporary_buffer<_ForwardIterator,_Tp>' being compiled
c:\inc2\stlport\stl\_tempbuf.h(104) : error C2146: syntax error : missing ';' before identifier 'size'
        c:\inc2\stlport\stl\_tempbuf.h(134) : see reference to class template instantiation '_STL::_Temporary_buffer<_ForwardIterator,_Tp>' being compiled
c:\inc2\stlport\stl\_tempbuf.h(104) : error C2501: 'ptrdiff_t' : missing storage-class or type specifiers
        c:\inc2\stlport\stl\_tempbuf.h(134) : see reference to class template instantiation '_STL::_Temporary_buffer<_ForwardIterator,_Tp>' being compiled
c:\inc2\stlport\stl\_tempbuf.h(104) : warning C4183: 'size': member function definition looks like a ctor, but name does not match enclosing class
        c:\inc2\stlport\stl\_tempbuf.h(134) : see reference to class template instantiation '_STL::_Temporary_buffer<_ForwardIterator,_Tp>' being compiled
c:\inc2\stlport\stl\_tempbuf.h(105) : error C2146: syntax error : missing ';' before identifier 'requested_size'
        c:\inc2\stlport\stl\_tempbuf.h(134) : see reference to class template instantiation '_STL::_Temporary_buffer<_ForwardIterator,_Tp>' being compiled
c:\inc2\stlport\stl\_tempbuf.h(105) : error C2501: 'ptrdiff_t' : missing storage-class or type specifiers
        c:\inc2\stlport\stl\_tempbuf.h(134) : see reference to class template instantiation '_STL::_Temporary_buffer<_ForwardIterator,_Tp>' being compiled
c:\inc2\stlport\stl\_tempbuf.h(105) : warning C4183: 'requested_size': member function definition looks like a ctor, but name does not match enclosing class
        c:\inc2\stlport\stl\_tempbuf.h(134) : see reference to class template instantiation '_STL::_Temporary_buffer<_ForwardIterator,_Tp>' being compiled
c:\inc2\stlport\stl\_tempbuf.c(36) : error C2974: 'pair' : invalid template argument for '_T2', type expected
        c:\inc2\stlport\stl\_pair.h(57) : see declaration of 'pair'
c:\inc2\stlport\stl\_tempbuf.c(37) : error C2061: syntax error : identifier 'ptrdiff_t'
c:\inc2\stlport\stl\_algo.h(72) : error C2146: syntax error : missing ';' before identifier 'count_if'
c:\inc2\stlport\stl\_algo.h(72) : error C2433: 'ptrdiff_t' : 'inline' not permitted on data declarations
c:\inc2\stlport\stl\_algo.h(72) : error C2501: 'ptrdiff_t' : missing storage-class or type specifiers
c:\inc2\stlport\stl\_algo.h(72) : error C2086: 'ptrdiff_t' : redefinition
c:\inc2\stlport\stl\_algo.h(72) : error C2059: syntax error : ';'
c:\inc2\stlport\stl\_algo.h(72) : error C2146: syntax error : missing ')' before identifier '__first'
c:\inc2\stlport\stl\_algo.h(72) : error C2501: 'count_if' : missing storage-class or type specifiers
c:\inc2\stlport\stl\_algo.h(72) : error C2059: syntax error : ')'
c:\inc2\stlport\stl\_algo.h(84) : error C2143: syntax error : missing ';' before '{'
c:\inc2\stlport\stl\_algo.h(84) : error C2447: missing function header (old-style formal list?)
c:\inc2\stlport\stl\_algo.h(97) : error C2954: template definitions cannot nest
c:\inc2\stlport\stl\_algo.h(121) : error C2373: 'count' : redefinition; different type modifiers
        c:\inc2\stlport\stl\_algobase.h(524) : see declaration of 'count'
c:\inc2\stlport\stl\_algo.h(130) : error C2373: 'count_if' : redefinition; different type modifiers
        c:\inc2\stlport\stl\_algo.h(72) : see declaration of 'count_if'
c:\inc2\stlport\stl\_threads.h(116) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed
        c:\inc2\stlport\stl\_threads.h(116) : see declaration of 'InterlockedIncrement'
c:\inc2\stlport\stl\_threads.h(117) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed
        c:\inc2\stlport\stl\_threads.h(117) : see declaration of 'InterlockedDecrement'
c:\inc2\stlport\stl\_threads.h(117) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.

DCPlusPlus.exe - 102 error(s), 2 warning(s)


I absolutely have no ideea.

I've included in path the v7.0 + stlport 4.5.3

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 07:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-11-13 10:05

You should use stlport 4.5.1020 avialble in the files section at http://www.sourceforge.net/projects/dcplusplus
Also, download the latest core sdk from http://www.microsoft.com/msdownload/platformsdk/sdkupdateand see if it helps.
Have you added wtl to your includepath? If not, do so.

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

Post by GargoyleMT » 2003-11-13 17:23

Code: Select all

For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications.  To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information.

This seems to indicate that you need a new platform SDK. If you run VS6, you will need one. If you're on VS7+ (which you are not) a new Platform SDK is not necessary.

SKIL
Posts: 10
Joined: 2003-11-10 11:50

Post by SKIL » 2003-11-13 18:56

I have the latest sdk .NET SDK 1.1 downloaded from www.microsoft.com and .NET Framework 1.1.

I've set up all include paths, but, that's the life. It doesnt compile!

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

Post by GargoyleMT » 2003-11-13 18:58

SKIL wrote:I have the latest sdk .NET SDK 1.1 downloaded from www.microsoft.com and .NET Framework 1.1.


The .NET SDK is not the same as the Platform SDK that is required for DC++ compilation.

It may be called "Core SDK" now, per some othe people's posts.

Who is online

Users browsing this forum: Google [Bot] and 0 guests