View Single Post
  #2  
Old 02-10-2004, 07:11 AM
Monrezz's Avatar
Monrezz
Dragon
 
Join Date: Mar 2003
Location: #loc
Posts: 745
Default

Code:
__time64_t curtime1,curtime2;
_time64(&curtime1);      
do
{            
   charid = database.GetCharacterInfo(char_name, &tmpaccid, &zoneID);            
   _time64(&curtime2);
}while(curtime2 - curtime1 <= 20 && zoneID == 0);
Has anyone using Dev-C++ or Win32 tried to compile using this? I get the following log when trying to compile:

Code:
Compiler: Default compiler 
Building Makefile: "C:\EQEmu\cvs\eqemu\eqemu\Dev-C++ Compat\world\Makefile.win" 
Executing  make clean 
rm -f client.o console.o LoginServer.o net.o zoneserver.o ../common/classes.o ../common/crc32.o ../common/database.o ../common/dbasync.o ../common/dbcore.o ../common/DBMemLeak.o ../common/debug.o ../common/EMuShareMem.o ../common/EQEMuError.o ../common/EQNetwork.o ../common/eqtime.o ../common/guilds.o ../common/Item.o ../common/md5.o ../common/misc.o ../common/MiscFunctions.o ../common/moremath.o ../common/Mutex.o ../common/packet_dump.o ../common/packet_dump_file.o ../common/packet_functions.o ../common/races.o ../common/serverinfo.o ../common/TCPConnection.o ../common/timer.o ../common/Portable_vsnprintf.o World_private.res World.exe 

g++.exe -c client.cpp -o client.o -I"C:/Dev-C++/include/c++"  -I"C:/Dev-C++/include/c++/mingw32"  -I"C:/Dev-C++/include/c++/backward"  -I"C:/Dev-C++/include"  -I"c:/eqemu/zlib"  -I"c:/mysql/include" -D__GNUWIN32__ -w -finline-functions -DWORLD -DSHAREMEM -DINVERSEXY -D_WIN32_WINNT=0x0400 -DWIN32 -D_CONSOLE -D_MBCS -DFIELD_ITEMS -DSHAREMEM   -fexpensive-optimizations 

client.cpp: In member function `bool Client::HandlePacket(const APPLAYER*)': 
client.cpp:486: `__time64_t' undeclared (first use this function) 
client.cpp:486: (Each undeclared identifier is reported only once for each 
   function it appears in.) 
client.cpp:486: parse error before `,' token 
client.cpp:487: `curtime1' undeclared (first use this function) 
client.cpp:487: `_time64' undeclared (first use this function) 
client.cpp:491: `curtime2' undeclared (first use this function) 

make.exe: *** [client.o] Error 1 

Execution terminated
Looks pretty simple to fix...but I know no C at all :(

Any help would be appreciated,

Monrezz
__________________

kRPG Profile
Reply With Quote