PlaneShift

Support => Technical Help: Problems BEFORE entering the game => Topic started by: yesure on August 11, 2004, 07:21:56 am

Title: Missing and Undeclared
Post by: yesure on August 11, 2004, 07:21:56 am
Hi all,

I\'m trying to compile the CVS version of planeshift but encounter two problems as follows.

1) Missing file --- \"pawsguildjoinwindow.cpp\"

--------------------Configuration: libgui - Win32 Release--------------------
Compiling...
pawsguildjoinwindow.cpp
fatal error C1083: Cannot open source file: \'D:\\PS\\planeshift\\planeshift\\src\\client\\gui\\pawsguildjoinwindow.cpp\': No such file or directory
pawspetitiongmwindow.cpp
D:\\PS\\planeshift\\planeshift\\src\\client\\gui\\pawspetitiongmwindow.cpp(539) : warning C4018: \'<\' : signed/unsigned mismatch
Generating Code...
Error executing cl.exe.

psclient.exe - 1 error(s), 1 warning(s)



2) Undeclared identifier --- \"VFS_FILE_APPEND\"

--------------------Configuration: apppsserver - Win32 Release--------------------
Compiling...
...
psserverchar.cpp
D:\\PS\\planeshift\\planeshift\\src\\server\\psserverchar.cpp(129) : error C2065: \'VFS_FILE_APPEND\' : undeclared identifier
...
Generating Code...
Error executing cl.exe.

psserver.exe - 1 error(s), 11 warning(s)



How can I solve these problems? Any help would be appreciated. Thanks in advance!
Title:
Post by: Androgos on August 11, 2004, 11:34:08 am
VFS_FILE_APPEND is in CS. It was commited perhaps 1 month ago?

pawsguildjoinwindow doesn\'t exist, just remove it
Title:
Post by: yesure on August 11, 2004, 03:50:27 pm
Quote
Originally posted by Androgos
VFS_FILE_APPEND is in CS.


Thanks, Androgos. But I\'ve checked the CVS version of Crystal Space and have not found it. Could you please describe in detail where to get it?
Title:
Post by: acraig on August 11, 2004, 05:20:06 pm
VFS_FILE_APPEND is defined
in this file (http://cvs.sourceforge.net/viewcvs.py/crystal/CS/include/iutil/vfs.h?rev=1.18&view=auto)
Title: Error! Error! Error! --- Part I
Post by: yesure on August 12, 2004, 07:04:20 am
Many thanks, acraig.

Now, the compilation process arises another errors.

--------------------Configuration: apppsserver - Win32 Release--------------------
Compiling...
adminmanager.cpp
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(243) : error C2258: illegal pure syntax, must be \'= 0\'
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(243) : error C2252: \'FLOODMAXBUFFSIZE\' : pure specifier can only be specified for functions
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(244) : error C2258: illegal pure syntax, must be \'= 0\'
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(244) : error C2252: \'FLOODWARBUFFSIZE\' : pure specifier can only be specified for functions
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(245) : error C2258: illegal pure syntax, must be \'= 0\'
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(245) : error C2252: \'FLOODFORGIVETIME\' : pure specifier can only be specified for functions
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(246) : error C2065: \'FLOODMAXBUFFSIZE\' : undeclared identifier
D:\\PS\\planeshift\\planeshift\\src\\server\\client.h(246) : error C2057: expected constant expression
...(the same errors as above)

psserver.exe - 233 error(s), 117 warning(s)



The errors are caused by the orginal code as below.

#ifndef __CLIENT_H__
...
class Client : protected NetBase::Connection
{
...
protected:
...
  //Flood control
 static const int FLOODMAXBUFFSIZE = 5; //Mute client
    static const int FLOODWARBUFFSIZE = 3; //Warn client
    static const int FLOODFORGIVETIME = 10000; //Warn client
    csArray FloodMessagebuff[FLOODMAXBUFFSIZE];
...
};
#endif


I modified the code as follows.
...
  //Flood control
 static const int FLOODMAXBUFFSIZE; //Mute client
    static const int FLOODWARBUFFSIZE; //Warn client
    static const int FLOODFORGIVETIME; //Warn client
    csArray FloodMessagebuff[5];
...
};
const int Client::FLOODMAXBUFFSIZE = 5; //Mute client
const int Client::FLOODWARBUFFSIZE = 3; //Warn client
const int Client::FLOODFORGIVETIME = 10000; //Warn client
#endif

Then the errors change to these:

authentserver.obj : error LNK2005: \"protected: static int const  Client::FLOODFORGIVETIME\" (?FLOODFORGIVETIME@Client@@1HB) already defined in adminmanager.obj
authentserver.obj : error LNK2005: \"protected: static int const  Client::FLOODWARBUFFSIZE\" (?FLOODWARBUFFSIZE@Client@@1HB) already defined in adminmanager.obj
authentserver.obj : error LNK2005: \"protected: static int const  Client::FLOODMAXBUFFSIZE\" (?FLOODMAXBUFFSIZE@Client@@1HB) already defined in adminmanager.obj
cachemanager.obj : error LNK2005: \"protected: static int const  Client::FLOODFORGIVETIME\" (?FLOODFORGIVETIME@Client@@1HB) already defined in adminmanager.obj
cachemanager.obj : error LNK2005: \"protected: static int const  Client::FLOODWARBUFFSIZE\" (?FLOODWARBUFFSIZE@Client@@1HB) already defined in adminmanager.obj
cachemanager.obj : error LNK2005: \"protected: static int const  Client::FLOODMAXBUFFSIZE\" (?FLOODMAXBUFFSIZE@Client@@1HB) already defined in adminmanager.obj
chatmanager.obj : error LNK2005: \"protected: static int const  Client::FLOODFORGIVETIME\" (?FLOODFORGIVETIME@Client@@1HB) already defined in adminmanager.obj
chatmanager.obj : error LNK2005: \"protected: static int const  Client::FLOODWARBUFFSIZE\" (?FLOODWARBUFFSIZE@Client@@1HB) already defined in adminmanager.obj
chatmanager.obj : error LNK2005: \"protected: static int const  Client::FLOODMAXBUFFSIZE\" (?FLOODMAXBUFFSIZE@Client@@1HB) already defined in adminmanager.obj
...
Title: Error! Error! Error! --- Part II
Post by: yesure on August 12, 2004, 07:08:24 am
Besides, maybe some .lib files are not linked into the project.

libpsutil.lib(psstring.obj) : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
libpsnet.lib(charmessages.obj) : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
libpsrpgrules.lib(psmoney.obj) : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
libpsutil.lib(psxmlparser.obj) : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
libpsutil.lib(strutil.obj) : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
usermanager.obj : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
workmanager.obj : error LNK2001: unresolved external symbol \"public: class csString & __thiscall csString::Replace(class csString const &,unsigned int)\" (?Replace@csString@@QAEAAV1@ABV1@I@Z)
...(the same errors as above)

psrelease\\temp\\apppsserver\\psserver.exe : fatal error LNK1120: 67 unresolved externals
Title: Error! Error! Error! --- Part III
Post by: yesure on August 12, 2004, 07:16:30 am
And, there are errors from the compilation of the client, too.

--------------------Configuration: apppsclient - Win32 Release--------------------
...
D:\\PS\\planeshift\\planeshift\\src\\client\\gui/pawsbuddy.h(95) : error C2248: \'currentBuddy\' : cannot access private member declared in class \'pawsBuddyWindow\'
        D:\\PS\\planeshift\\planeshift\\src\\client\\gui/pawsbuddy.h(127) : see declaration of \'currentBuddy\'

The original code is:
class pawsBuddyWindow : public pawsControlledWindow, public iNetSubscriber
{
public:
...
    class OnRemovedEntered : public iOnStringEnteredAction
    {
        public:
            ...
            void Execute(const csString & text)
            {
                if ( text.Length() > 0 )
                {          
                    ...                  
                    wnd->currentBuddy = \"\"; // Here the error is caused
                }                
            }                                
        private:
            csString currentBuddy;
            pawsBuddyWindow * wnd;
    };      
...        
private:
    pawsListBox* buddyList;  
    csString currentBuddy;      
};


Sorry to post so many errors to ask help. It would be very much appreciated for any solution!
Title:
Post by: Androgos on August 12, 2004, 11:25:01 am
What compiler do you use?
Title:
Post by: yesure on August 12, 2004, 12:37:09 pm
My compiler is visual studio 6.0 + service pack 5

So, did you ever compile the CVS version of planeshift (Crystal Blue) successfully?
Title:
Post by: Androgos on August 12, 2004, 01:01:35 pm
Hm, the 6:th version is like 8 years old, and Wierd Stuff can happen with those old project files.

If you have the options, try to get Visual Studio 7.1 (2004) or download MSVC 8.0 (2005) Beta free from MS site
Title:
Post by: yesure on August 13, 2004, 06:41:09 am
Quote
Originally posted by Androgos
 ... or download MSVC 8.0 (2005) Beta free from MS site


I\'ve browsed the MS website but haven\'t found any clue for downloading of MSVC 8.0 beta. Could you post the link address?
Title:
Post by: Karosh_Steinkatz on August 13, 2004, 11:06:51 am
I think Androgos was talking about this one: http://lab.msdn.microsoft.com/express/visualc/default.aspx
Title:
Post by: Androgos on August 13, 2004, 11:16:57 am
Jupps that\'s the one.

And btw, if you want help building PS, the quickest way is to go IRC
Title:
Post by: yesure on August 14, 2004, 07:42:25 am
Thank you very much for your reply. I\'ve ordered one copy of CD from the MS website.

I\'m glad and eager to join the IRC, but can\'t connect to the server of Freenode. Is the address http://irc.freenode.net correct?
Title:
Post by: Androgos on August 14, 2004, 10:41:12 am
No
You need an IRC client (Like mIRC ($$), or XChat (Free))
Those have the server in thier server list, but for the record:
irc.freenode.net:6667

Mozilla also has a IRC client, the third button in the corner (cZ)
Title:
Post by: THAPRINZE on August 14, 2004, 04:59:08 pm
dont know where ppl get it from but mIRC doesn\'t cost money..i have the latest version..just downloaded from the site..and i dont have to pay for it..so, am i crazy then?