compile error?

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

Moderator: Moderators

Locked
jutte
Posts: 5
Joined: 2006-07-11 09:47

compile error?

Post by jutte » 2006-07-11 09:56

Im running windows XP SP2 and MSVS .Net 2003

i have set the paths for wtl and stlport correctly. (using stl port frome dc++ sourceforge page).

when i try and compile i get these errors:

c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2059: syntax error : ')'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2059: syntax error : ')'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(379): error C2065: '_Alloc' : undeclared identifier
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(379): error C2065: '_Alloc' : undeclared identifier
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2065: '_CharT' : undeclared identifier
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2065: '_CharT' : undeclared identifier
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(379): error C2065: '_Traits' : undeclared identifier
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(379): error C2065: '_Traits' : undeclared identifier
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(354): error C2143: syntax error : missing ',' before '*'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(354): error C2143: syntax error : missing ',' before '*'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(354): error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT>::find'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT>::find'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(354): error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT>::find'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2143: syntax error : missing ';' before '_STL::basic_string<_CharT>::find'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(381): error C2143: syntax error : missing ';' before '{'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(381): error C2143: syntax error : missing ';' before '{'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2146: syntax error : missing ')' before identifier '__c'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2146: syntax error : missing ')' before identifier '__c'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2350: '_STL::basic_string<_CharT>::find' is not a static member
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2350: '_STL::basic_string<_CharT>::find' is not a static member
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(381): error C2447: '{' : missing function header (old-style formal list?)
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(381): error C2447: '{' : missing function header (old-style formal list?)
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2501: '_STL::basic_string<_CharT>::find' : missing storage-class or type specifiers
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2501: '_STL::basic_string<_CharT>::find' : missing storage-class or type specifiers
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(354): error C2501: '_STL::basic_string<_CharT>::size_type' : missing storage-class or type specifiers
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2501: '_STL::basic_string<_CharT>::size_type' : missing storage-class or type specifiers
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(354): error C2501: '_STL::basic_string<_CharT>::size_type' : missing storage-class or type specifiers
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): error C2501: '_STL::basic_string<_CharT>::size_type' : missing storage-class or type specifiers
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(379): error C2955: '_STL::basic_string' : use of class template requires template argument list
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.h(1144) : see declaration of '_STL::basic_string'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(380): error C2955: '_STL::basic_string' : use of class template requires template argument list
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.h(1144) : see declaration of '_STL::basic_string'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(379): error C2955: '_STL::basic_string' : use of class template requires template argument list
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.h(1144) : see declaration of '_STL::basic_string'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(380): error C2955: '_STL::basic_string' : use of class template requires template argument list
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.h(1144) : see declaration of '_STL::basic_string'
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(380): error C3861: '_Alloc': identifier not found, even with argument-dependent lookup
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(380): error C3861: '_Alloc': identifier not found, even with argument-dependent lookup
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(379): error C3861: '_CharT': identifier not found, even with argument-dependent lookup
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(380): error C3861: '_CharT': identifier not found, even with argument-dependent lookup
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(379): error C3861: '_CharT': identifier not found, even with argument-dependent lookup
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(380): error C3861: '_CharT': identifier not found, even with argument-dependent lookup
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(380): error C3861: '_Traits': identifier not found, even with argument-dependent lookup
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(380): error C3861: '_Traits': identifier not found, even with argument-dependent lookup
help error result returned from 'c:\docume~1\andreas\lokala~1\temp\bat000064.bat'.
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(397): fatal error C1903: unable to recover from previous error(s); stopping compilation
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(397): fatal error C1903: unable to recover from previous error(s); stopping compilation
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(354): warning C4346: '_STL::basic_string<_CharT>::find' : dependent name is not a type
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): warning C4346: '_STL::basic_string<_CharT>::find' : dependent name is not a type
prefix with 'typename' to indicate a type
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(354): warning C4346: '_STL::basic_string<_CharT>::find' : dependent name is not a type
prefix with 'typename' to indicate a type
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): warning C4346: '_STL::basic_string<_CharT>::find' : dependent name is not a type
prefix with 'typename' to indicate a type
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(354): warning C4346: '_STL::basic_string<_CharT>::size_type' : dependent name is not a type
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(354): warning C4346: '_STL::basic_string<_CharT>::size_type' : dependent name is not a type
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): warning C4346: '_STL::basic_string<_CharT>::size_type' : dependent name is not a type
prefix with 'typename' to indicate a type
c:\Downloads\fulDC-6[1].79-B2-src\stlport-dcpp\stlport\stl\_string.c(367): warning C4346: '_STL::basic_string<_CharT>::size_type' : dependent name is not a type
prefix with 'typename' to indicate a type

Any help appreciated.

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2006-07-11 10:21

You appear to be compiling fulDC. Do you get similar problems with DC++?
The world is coming to an end. Please log off.

DC++ Guide | Words

jutte
Posts: 5
Joined: 2006-07-11 09:47

Post by jutte » 2006-07-11 10:24

yes. can't really understand what's wrong. (tryed to compile dc++ before i tried fuldc)

Carraya
Posts: 112
Joined: 2004-09-21 11:43

Post by Carraya » 2006-07-11 10:47

the files from the stlport zip file should be in a stlport subdir, not a sub dir under stlport-dc...
<random funny comment>

jutte
Posts: 5
Joined: 2006-07-11 09:47

Post by jutte » 2006-07-12 05:49

thnx, that fixed it. but now i get another error:

Code: Select all

DCPlusPlus fatal error LNK1120: 8 unresolved externals
DCPlusPlus error LNK2019: unresolved external symbol "public: long __thiscall FulHighlightDialog::onBgColor(unsigned short,unsigned short,struct HWND__ *,int &)" (?onBgColor@FulHighlightDialog@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall FulHighlightDialog::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@FulHighlightDialog@@UAEHPAUHWND__@@IIJAAJK@Z)
DCPlusPlus error LNK2019: unresolved external symbol "public: long __thiscall FulHighlightDialog::onCancel(unsigned short,unsigned short,struct HWND__ *,int &)" (?onCancel@FulHighlightDialog@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall FulHighlightDialog::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@FulHighlightDialog@@UAEHPAUHWND__@@IIJAAJK@Z)
DCPlusPlus error LNK2019: unresolved external symbol "public: long __thiscall FulHighlightDialog::onClickedBox(unsigned short,unsigned short,struct HWND__ *,int &)" (?onClickedBox@FulHighlightDialog@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall FulHighlightDialog::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@FulHighlightDialog@@UAEHPAUHWND__@@IIJAAJK@Z)
DCPlusPlus error LNK2019: unresolved external symbol "public: long __thiscall FulHighlightDialog::onFgColor(unsigned short,unsigned short,struct HWND__ *,int &)" (?onFgColor@FulHighlightDialog@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall FulHighlightDialog::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@FulHighlightDialog@@UAEHPAUHWND__@@IIJAAJK@Z)
DCPlusPlus error LNK2019: unresolved external symbol "public: long __thiscall FulHighlightDialog::onInitDialog(unsigned int,unsigned int,long,int &)" (?onInitDialog@FulHighlightDialog@@QAEJIIJAAH@Z) referenced in function "public: virtual int __thiscall FulHighlightDialog::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@FulHighlightDialog@@UAEHPAUHWND__@@IIJAAJK@Z)
DCPlusPlus error LNK2019: unresolved external symbol "public: long __thiscall FulHighlightDialog::onOk(unsigned short,unsigned short,struct HWND__ *,int &)" (?onOk@FulHighlightDialog@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall FulHighlightDialog::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@FulHighlightDialog@@UAEHPAUHWND__@@IIJAAJK@Z)
DCPlusPlus error LNK2019: unresolved external symbol "public: long __thiscall FulHighlightDialog::onSelSound(unsigned short,unsigned short,struct HWND__ *,int &)" (?onSelSound@FulHighlightDialog@@QAEJGGPAUHWND__@@AAH@Z) referenced in function "public: virtual int __thiscall FulHighlightDialog::ProcessWindowMessage(struct HWND__ *,unsigned int,unsigned int,long,long &,unsigned long)" (?ProcessWindowMessage@FulHighlightDialog@@UAEHPAUHWND__@@IIJAAJK@Z)
DCPlusPlus error LNK2019: unresolved external symbol "public: virtual __thiscall FulHighlightDialog::~FulHighlightDialog(void)" (??1FulHighlightDialog@@UAE@XZ) referenced in function "public: long __thiscall FulHighlightPage::onAdd(unsigned short,unsigned short,struct HWND__ *,int &)" (?onAdd@FulHighlightPage@@QAEJGGPAUHWND__@@AAH@Z)
help error result returned from 'c:\docume~1\andreas\lokala~1\temp\bat000038.bat'.

poy
Posts: 83
Joined: 2006-04-03 15:55

Post by poy » 2006-07-12 06:29

this seems to be only related to "FulHighlightDialog"; what happens if you compile DC++, which doesn't have this "FulHighlightDialog"?

jutte
Posts: 5
Joined: 2006-07-11 09:47

Post by jutte » 2006-07-12 08:53

it does work then, yes. but i would in either case like some help on the question above (would like to try and compile it to increase my knowledge)

Pothead
Posts: 223
Joined: 2005-01-15 06:55

Post by Pothead » 2006-07-12 19:56

I thought fulDC needed VS 2005 and a newer STLPort. Could be that ? :)

jutte
Posts: 5
Joined: 2006-07-11 09:47

Post by jutte » 2006-07-13 05:34

well.... according to their webpage.... it should be possible to compile it with visual studio 2003 .net and stlport 4.6.2

Carraya
Posts: 112
Joined: 2004-09-21 11:43

Post by Carraya » 2006-07-13 05:41

jutte wrote:well.... according to their webpage.... it should be possible to compile it with visual studio 2003 .net and stlport 4.6.2
Then you have to use the old vs projects... I don't think it's a good idea...
<random funny comment>

Locked