a few errors to sort out

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

Moderator: Moderators

Cyranno
Posts: 7
Joined: 2003-12-04 20:44

a few errors to sort out

Post by Cyranno » 2003-12-04 20:49

I'm getting these errors with the stl port

c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(337) : error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT,_Traits,_Alloc>::find'
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(337) : error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : missing storage-class or type specifiers
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(337) : warning C4346: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' : dependent name is not a type
prefix with 'typename' to indicate a type
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(337) : error C2143: syntax error : missing ',' before '*'
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(350) : warning C4346: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : dependent name is not a type
prefix with 'typename' to indicate a type
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(350) : error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT,_Traits,_Alloc>::find'
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(350) : error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::size_type' : missing storage-class or type specifiers
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(350) : error C2065: '_CharT' : undeclared identifier
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(350) : warning C4346: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' : dependent name is not a type
prefix with 'typename' to indicate a type
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(350) : error C2146: syntax error : missing ')' before identifier '__c'
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(350) : error C2501: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' : missing storage-class or type specifiers
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(350) : error C2350: '_STL::basic_string<_CharT,_Traits,_Alloc>::find' is not a static member
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(350) : error C2059: syntax error : ')'
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(362) : error C3861: '_CharT': identifier not found, even with argument-dependent lookup
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(362) : error C2065: '_Traits' : undeclared identifier
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(362) : error C2065: '_Alloc' : undeclared identifier
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(362) : error C2955: '_STL::basic_string' : use of class template requires template argument list
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.h(1155) : see declaration of '_STL::basic_string'
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(363) : error C3861: '_CharT': identifier not found, even with argument-dependent lookup
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(363) : error C3861: '_Traits': identifier not found, even with argument-dependent lookup
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(363) : error C3861: '_Alloc': identifier not found, even with argument-dependent lookup
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(363) : error C2955: '_STL::basic_string' : use of class template requires template argument list
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.h(1155) : see declaration of '_STL::basic_string'
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(364) : error C2143: syntax error : missing ';' before '{'
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(364) : error C2447: '{' : missing function header (old-style formal list?)
c:\unzipped\dc++ source\stlport-4.5.3-dcpp\stlport\stl\_string.c(380) : fatal error C1903: unable to recover from previous error(s); stopping compilation

any help clarifying what to do with these would be nice :)

Cyranno
Posts: 7
Joined: 2003-12-04 20:44

Post by Cyranno » 2003-12-04 20:54

what i am forgetting to do here?

ivulfusbar
Posts: 506
Joined: 2003-01-03 12:33

Post by ivulfusbar » 2003-12-04 21:37

If you tried to search the forum for your errors you will
find several posts answering your question.

Try to search for,
error C2065: '_Alloc' : undeclared identifier
as an example.

http://dcplusplus.sourceforge.net/forum ... identifier

http://dcplusplus.sourceforge.net/forum ... identifier

http://dcplusplus.sourceforge.net/forum ... identifier

http://dcplusplus.sourceforge.net/forum ... identifier

If you search some more you will get more answers..
Everyone is supposed to download from the hubs, - I don´t know why, but I never do anymore.

Cyranno
Posts: 7
Joined: 2003-12-04 20:44

i got it to work

Post by Cyranno » 2003-12-05 03:37

well i changed to the new 305 source and 4.6 stl port an now have the client compilied and working :D also i have to got the phantom source ompilied and working well with the 4.6 stl port now to find out how to include the options i want thanks for the help

Cyranno
Posts: 7
Joined: 2003-12-04 20:44

Post by Cyranno » 2003-12-05 07:19

to eliminate the stl errors i just changed to stl 6.0 and it works with .304 phantom source as well as reg dc++ source

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

Post by GargoyleMT » 2003-12-05 17:36

Cyranno wrote:to eliminate the stl errors i just changed to stl 6.0 and it works with .304 phantom source as well as reg dc++ source


STL 6.0....?

www.stlport.com wrote:Current release version : 4.6 (Oct 31, 2003)
STLport-4.6.tar.gz, 780KBytes

Current beta snapshot (5.0, Oct 31, 2003):
STLport-5.0-1031.tar.gz, 780KBytes

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

Post by joakim_tosteberg » 2003-12-05 20:22

Maybe he meant 4.6 :? ?

Cyranno
Posts: 7
Joined: 2003-12-04 20:44

yes i meant 4.6

Post by Cyranno » 2003-12-05 20:37

stl 4.6 is what i meant was a long day and a later night :)

Cyranno
Posts: 7
Joined: 2003-12-04 20:44

Post by Cyranno » 2003-12-06 00:55

any ideas on how to make a name workable for my compilied version?

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

Re: yes i meant 4.6

Post by GargoyleMT » 2003-12-08 18:52

Cyranno wrote:stl 4.6 is what i meant was a long day and a later night :)


:)

any ideas on how to make a name workable for my compilied version?


You want to change the displayed name? Look at version.h and DCPlusPlus.rc.

Cyranno
Posts: 7
Joined: 2003-12-04 20:44

Post by Cyranno » 2003-12-10 03:11

thanks i also got some nice /dc++ messages as well :D

Who is online

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