Game Development Community

Error whilst compiling Release_1_2_2 or latest cvs

by Gary Preston · in Technical Issues · 08/21/2004 (12:44 pm) · 3 replies

I've followed the cvs guide to the letter and checked out the latest stable version of torque, then compiled it as instructed using vc.net 2003. I get the following error (another 100 or so related to this one)

"h:\torque\engine\platformWin32\winNet.cc(28): error C2065: 'MAXGETHOSTSTRUCT' : undeclared identifier"

I've checked the winNet.cc code, it's including the winsock.h header file which includes the definition for MaxGetHostStruct. However for whatever reason it isn't seeing maxgethost as been defined.

Anyone any idea what may be misconfigured in vc.net and causing this? I've verified the header file is present btw.

I've also checked out the latest cvs in case it was a problem with the last release, but same error.

#1
08/21/2004 (12:50 pm)
...
#2
08/21/2004 (12:58 pm)
Yes its upper case, my mistake in typing the above in :P
#3
08/21/2004 (1:17 pm)
Problem solved, well, dodged around :)

I've changed the winNet.cc header to use rather than , thats cured the errors and the demo example runs fine now..

Off to work out how to use torque now, think a cup of coffee is in order first :)