Compiling 0.3.4 in VC++ .NET?
Has anybody been able to compile the ZoneNT project in VC++ .NET? I get a bunch of errors with mutex.cpp as follows:
d:\eqemu-0.3.4-Source\common\Mutex.cpp(159): error C2065: 'cout' : undeclared identifier d:\eqemu-0.3.4-Source\common\Mutex.cpp(159): error C2296: '<<' : illegal, left operand has type ''unknown-type'' d:\eqemu-0.3.4-Source\common\Mutex.cpp(159): error C2297: '<<' : illegal, right operand has type 'char [46]' d:\eqemu-0.3.4-Source\common\Mutex.cpp(159): error C2065: 'endl' : undeclared identifier d:\eqemu-0.3.4-Source\common\Mutex.cpp(188): error C2296: '<<' : illegal, left operand has type ''unknown-type'' d:\eqemu-0.3.4-Source\common\Mutex.cpp(188): error C2297: '<<' : illegal, right operand has type 'char [14]' d:\eqemu-0.3.4-Source\common\Mutex.cpp(235): error C2296: '<<' : illegal, left operand has type ''unknown-type'' d:\eqemu-0.3.4-Source\common\Mutex.cpp(235): error C2297: '<<' : illegal, right operand has type 'char [14]' d:\eqemu-0.3.4-Source\common\Mutex.cpp(159): error C2065: 'cout' : undeclared identifier d:\eqemu-0.3.4-Source\common\Mutex.cpp(159): error C2296: '<<' : illegal, left operand has type ''unknown-type'' d:\eqemu-0.3.4-Source\common\Mutex.cpp(159): error C2297: '<<' : illegal, right operand has type 'char [46]' d:\eqemu-0.3.4-Source\common\Mutex.cpp(159): error C2065: 'endl' : undeclared identifier d:\eqemu-0.3.4-Source\common\Mutex.cpp(188): error C2296: '<<' : illegal, left operand has type ''unknown-type'' d:\eqemu-0.3.4-Source\common\Mutex.cpp(188): error C2297: '<<' : illegal, right operand has type 'char [14]' d:\eqemu-0.3.4-Source\common\Mutex.cpp(235): error C2296: '<<' : illegal, left operand has type ''unknown-type'' d:\eqemu-0.3.4-Source\common\Mutex.cpp(235): error C2297: '<<' : illegal, right operand has type 'char [14]' Obviously all of the errors deal with the iostream header file, thus I commented out the following: //#define DEBUG_MUTEX_CLASS 0 //#if DEBUG_MUTEX_CLASS >= 1 #include <iostream.h> //#endif And it compiles... but the client can't log their character into the zone. The size of ZoneNT.exe after compiling (after commenting out the above lines) is around 2x the size as well..... Does anybody know a way to get around these errors? Thanks! Peace, Davn |
There's a topic in this very forum about that. Currently it's only three topics below this one. =)
Basically, some of the includes need to have the .h dropped, and some of the source files need using namespace std; added. Ursine |
Actually I fixed it using another method.
PS: Thanks for your guidance, I don't have eyes. |
All times are GMT -4. The time now is 10:03 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.