100 error(s), 1 warning(s) - okay... what's going on?

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

Moderator: Moderators

Defiant
Posts: 5
Joined: 2003-06-12 18:41

100 error(s), 1 warning(s) - okay... what's going on?

Post by Defiant » 2003-06-12 18:45

Code: Select all

--------------------Configuration: client - Win32 Debug--------------------
Compiling...
ADLSearch.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
BufferedSocket.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
Client.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
ClientManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
ConnectionManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
CryptoManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
DCPlusPlus.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
DirectoryListing.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
DownloadManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
FinishedManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
HttpConnection.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
HubManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
LogManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
QueueManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
ResourceManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
SearchManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
SettingsManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
SFVReader.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
ShareManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
O:\dcpp\client\ShareManager.cpp(582) : warning C4239: nonstandard extension used : 'argument' : conversion from 'struct _STL::auto_ptr<class _STL::vector<class StringSearch,class _STL::allocator<class StringSearch> > >' to 'struct _STL::auto_ptr<cla
ss _STL::vector<class StringSearch,class _STL::allocator<class StringSearch> > > &'
        A reference that is not to 'const' cannot be bound to a non-lvalue
SimpleXML.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
Generating Code...
Compiling...
Socket.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
UploadManager.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
User.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
UserConnection.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
Util.cpp
o:\dcpp\client\settingsmanager.h(148) : error C2252: 'VERSION_URL_TYPE_NORMAL' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(149) : error C2258: illegal pure syntax, must be '= 0'
o:\dcpp\client\settingsmanager.h(149) : error C2252: 'VERSION_URL_TYPE_SARF' : pure specifier can only be specified for functions
o:\dcpp\client\settingsmanager.h(156) : error C2065: 'VERSION_URL_TYPE_NORMAL' : undeclared identifier
Generating Code...
Error executing cl.exe.

DCPlusPlus.exe - 100 error(s), 1 warning(s)
Last edited by Defiant on 2003-06-21 12:00, edited 2 times in total.

Defiant
Posts: 5
Joined: 2003-06-12 18:41

Post by Defiant » 2003-06-12 18:46

I have the appropriate STLport, WTL, and SDK included as instructed in other threads. The order: STLport, WTL, and SDK.

I'm using VS6. Oh, and I'm also trying to compile the DC++ 0.251051k source.

sarf
Posts: 382
Joined: 2003-01-24 10:43
Location: Sweden

Post by sarf » 2003-06-12 20:06

Switch the whole static thingies to use this code (which will be used publicly in the next version I release) :

Code: Select all

   enum VersionURLTypes
   {
      VERSION_URL_TYPE_NORMAL = 0,
      VERSION_URL_TYPE_SARF
   };

   /**
    * Returns a Version URL for update checks.
    * @param versionURLType the type of the version file - see VERSION_URL_TYPE_*
    * @return a Version URL containing a (hopefully :) valid URL file
    */
   string getVersionURL(VersionURLTypes versionURLType = VersionURLTypes::VERSION_URL_TYPE_NORMAL)
   {
      switch(versionURLType)
      {
         case(VERSION_URL_TYPE_SARF):
            return "http://www.fukt.bth.se/~k/dcpp/version.xml";
            break;
         default:
            return "http://dcplusplus.sourceforge.net/version.xml";
      }
   }

Warning! Code was made while slightly (well... more than slightly) drunk and it Worked For Me On My Computer (tm).

Sarf
---
"A conclusion is the place where you get tired of thinking." - Arthur Bloch

Defiant
Posts: 5
Joined: 2003-06-12 18:41

Post by Defiant » 2003-06-19 09:37

All right... well, I'm using the latest source now (0.2510553k) and I'm getting different errors just by loading up the dsw and trying to build.

Code: Select all

Generating Code...
Linking...
ADLSearchFrame.obj : error LNK2001: unresolved external symbol "public: long __thiscall ADLSProperties::OnCloseCmd(unsigned short,unsigned short,struct HWND__ *,int &)" (?OnCloseCmd@ADLSProperties@@QAEJGGPAUHWND__@@AAH@Z)
ADLSearchFrame.obj : error LNK2001: unresolved external symbol "public: long __thiscall ADLSProperties::OnInitDialog(unsigned int,unsigned int,long,int &)" (?OnInitDialog@ADLSProperties@@QAEJIIJAAH@Z)
PropertiesDlg.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DCPPkPage::write(void)" (?write@DCPPkPage@@UAEXXZ)
PropertiesDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall DCPPkPage::initDialog(void)" (?initDialog@DCPPkPage@@QAEXXZ)
PropertiesDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall DCPPkPage::updateEdits(void)" (?updateEdits@DCPPkPage@@QAEXXZ)
PropertiesDlg.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall DCPPkDetectorPage::write(void)" (?write@DCPPkDetectorPage@@UAEXXZ)
PropertiesDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall DCPPkDetectorPage::updateEdits(void)" (?updateEdits@DCPPkDetectorPage@@QAEXXZ)
PropertiesDlg.obj : error LNK2001: unresolved external symbol "public: void __thiscall DCPPkDetectorPage::initDialog(void)" (?initDialog@DCPPkDetectorPage@@QAEXXZ)
client.lib(ConnectionManager.obj) : error LNK2001: unresolved external symbol "public: bool __thiscall UserClientType::isExtendedLock(void)" (?isExtendedLock@UserClientType@@QAE_NXZ)
client.lib(ConnectionManager.obj) : error LNK2001: unresolved external symbol "public: static class UserClientType * __cdecl UserClientType::getUserClientType(class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> >,
class _STL::basic_string<char,class _STL::char_traits<char>,class _STL::allocator<char> >)" (?getUserClientType@UserClientType@@SAPAV1@V?$basic_string@DV?$char_traits@D@_STL@@V?$allocator@D@2@@_STL@@0@Z)
client.lib(ConnectionManager.obj) : error LNK2001: unresolved external symbol "public: __thiscall UserClientType::~UserClientType(void)" (??1UserClientType@@QAE@XZ)
App/DCPlusPlus.exe : fatal error LNK1120: 11 unresolved externals
Error executing link.exe.

DCPlusPlus.exe - 12 error(s), 17 warning(s)


Full log: www.sonicexpansion.net/log.txt
Last edited by Defiant on 2003-06-21 12:01, edited 1 time in total.

Atomic Jo
Posts: 62
Joined: 2003-01-04 08:50
Location: Québec, Canada

Post by Atomic Jo » 2003-06-19 14:46

Try to add to your DCPlusPlus the ADSLSearchFrame.cpp /.h, DCPPkPAge.cpp /.h, DCPPkDetectorPage.cpp /.h and UserClientType.cpp/.h ... save the settings, clean the project and rebuild a new one.

Defiant
Posts: 5
Joined: 2003-06-12 18:41

Post by Defiant » 2003-06-21 12:00

Code: Select all

DCPPkPage.cpp
O:\0.251-k\windows\DCPPkPage.cpp(56) : error C2065: 'DEBUG_NEW' : undeclared identifier
O:\0.251-k\windows\DCPPkPage.cpp(56) : error C2440: 'initializing' : cannot convert from 'int' to 'char *'
        Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
O:\0.251-k\windows\DCPPkPage.cpp(56) : error C2144: syntax error : missing ';' before type 'char'
O:\0.251-k\windows\DCPPkPage.cpp(56) : warning C4091: '' : ignored on left of 'char' when no variable is declared
O:\0.251-k\windows\DCPPkPage.cpp(56) : error C2143: syntax error : missing ';' before '['
O:\0.251-k\windows\DCPPkPage.cpp(56) : error C2143: syntax error : missing ';' before '['
UserClientType.cpp
o:\0.251-k\client\userclienttype.cpp(55) : fatal error C1010: unexpected end of file while looking for precompiled header directive


Full log: www.sonicexpansion.net/log2.txt

sarf
Posts: 382
Joined: 2003-01-24 10:43
Location: Sweden

Post by sarf » 2003-06-21 13:31

This code seems to make problems for you.

Code: Select all

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

I'd suggest to remove it (not that I think it is really what causes your problems).

Good luck.

Sarf
---
Guns don't kill people. Bullets do.

Who is online

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