Visual Studio compile error itemutils.cpp/.h
Posted: Thu Aug 31, 2017 11:28 am
Hi i'm currently trying to setup a server, I have completed all the tasks up to compiling the solution in visual studio, the only error i get in the whole build is to do with itemutils.cpp/itemutils.h, I have looked around for a solution or even one person with this issue but I am unable to find any information, with no other alternative i decided it was time to make a forum post to maybe help solve this issue.
I get a total of 6 errors which are:
Code Description Project File Line
C2065 'g_pDropList': undeclared identifier DSGame-Server itemutils.cpp 236
C2065 'g_pDropList': undeclared identifier DSGame-server itemutils.cpp 470
C2065 'g_pDropList': undeclared identifier DSGame-server itemutils.cpp 472
C2065 'g_pDropList': undeclared identifier DSGame-server itemutils.cpp 483
C2227 left of '->push_back' must point to class/struct/union/generic type 483
C2065 'g_pDropList': undeclared identifier DSGame-server itemutils.cpp 572
I also get 2 warnings but i'm not sure how relevant they are to the issue:
Code Description
C4819 The file contains a character that cannot represented in the current code page(923). Save the file in unicode format to prevent data loss DSGame-Server itemutils.cpp 1
C4819 The file contains a character that cannot represented in the current code page(923). Save the file in unicode format to prevent data loss DSGame-Server itemutils.h 1
Please forgive me for any formatting errors
I won't pretend to be well versed in coding or scripting I know a very small amount, any help would be greatly appreciated thank you.
[Edit]for the moment I was able to get the program to compile by commenting out all of the errors, I can imagine this will cause serious issues down the line but for now I am able to get the server running, I would very much like some advice on solving this issue or even a fix if possible.
I get a total of 6 errors which are:
Code Description Project File Line
C2065 'g_pDropList': undeclared identifier DSGame-Server itemutils.cpp 236
C2065 'g_pDropList': undeclared identifier DSGame-server itemutils.cpp 470
C2065 'g_pDropList': undeclared identifier DSGame-server itemutils.cpp 472
C2065 'g_pDropList': undeclared identifier DSGame-server itemutils.cpp 483
C2227 left of '->push_back' must point to class/struct/union/generic type 483
C2065 'g_pDropList': undeclared identifier DSGame-server itemutils.cpp 572
I also get 2 warnings but i'm not sure how relevant they are to the issue:
Code Description
C4819 The file contains a character that cannot represented in the current code page(923). Save the file in unicode format to prevent data loss DSGame-Server itemutils.cpp 1
C4819 The file contains a character that cannot represented in the current code page(923). Save the file in unicode format to prevent data loss DSGame-Server itemutils.h 1
Please forgive me for any formatting errors
I won't pretend to be well versed in coding or scripting I know a very small amount, any help would be greatly appreciated thank you.
[Edit]for the moment I was able to get the program to compile by commenting out all of the errors, I can imagine this will cause serious issues down the line but for now I am able to get the server running, I would very much like some advice on solving this issue or even a fix if possible.