Server Help

Bot Questions - How to compile MervBot with VC++ 6.0

Anonymous - Fri Jan 31, 2003 4:34 pm
Post subject: How to compile MervBot with VC++ 6.0
Hi!
I`ve tried to compile Mervbot using VC++ 6.0 since it doesen`t support VC++ 7.0`s vcproj files...

This is what I`ve done :
1.File->New->Win32 Console Application
2.Empty Project
3.Project->Add to Project->Files
4.Added all of Mervbots source files which came in the src.zip file with Mervbot except the files which came in Backup.zip.
5.Compiled...

Then I get the following errors :
src\basewin.cpp(22) : error C2065: 'MEMCPY' : undeclared identifier
src\bigint.cpp(34) : error C2065: 'MEMCPY' : undeclared identifier
src\fileio.cpp(32) : warning C4018: '==' : signed/unsigned mismatch
src\md5.cpp(255) : error C2065: 'MEMCPY' : undeclared identifier
Error executing cl.exe.
db2.exe - 3 error(s), 1 warning(s)

I`ve tried including those files in backup.zip as well, but then I get lots of unresolved externals which I bet are winsock APIs..

What have I done wrong now ?icon_sad.gif

-MineToo!!!
SOS - Sat Feb 01, 2003 4:11 am
Post subject:
Those ARE the backup.zip files..... get rid of them
Anonymous - Sat Feb 01, 2003 8:42 am
Post subject:
Uh-oh, that`s right icon_smile.gif

Okay, here are the errors when I add only the files in src.zip without backup.zip :

Code: Show/Hide
Compiling...
algorithms.cpp
botdb.cpp
botdll.cpp
botinfo.cpp
checksum.cpp
chunk.cpp
client.cpp
clientprot.cpp
command.cpp
commtypes.cpp
datatypes.cpp
dllcore.cpp
encrypt.cpp
hack.cpp
host.cpp
hostlist.cpp
map.cpp
player.cpp
prng.cpp
sockets.cpp
specialprot.cpp
system.cpp
Linking...
sockets.obj : error LNK2001: unresolved external symbol __imp__WSAGetLastError@0
sockets.obj : error LNK2001: unresolved external symbol __imp__WSAStartup@8
sockets.obj : error LNK2001: unresolved external symbol __imp__WSACleanup@0
sockets.obj : error LNK2001: unresolved external symbol __imp__closesocket@4
sockets.obj : error LNK2001: unresolved external symbol __imp__WSACloseEvent@4
sockets.obj : error LNK2001: unresolved external symbol __imp__WSAEventSelect@12
sockets.obj : error LNK2001: unresolved external symbol __imp__WSACreateEvent@0
sockets.obj : error LNK2001: unresolved external symbol __imp__bind@12
sockets.obj : error LNK2001: unresolved external symbol __imp__socket@12
sockets.obj : error LNK2001: unresolved external symbol __imp__sendto@24
sockets.obj : error LNK2001: unresolved external symbol __imp__recvfrom@24
sockets.obj : error LNK2001: unresolved external symbol __imp__WSAWaitForMultipleEvents@20
sockets.obj : error LNK2001: unresolved external symbol __imp__htons@4
sockets.obj : error LNK2001: unresolved external symbol __imp__inet_ntoa@4
sockets.obj : error LNK2001: unresolved external symbol __imp__gethostbyname@4
sockets.obj : error LNK2001: unresolved external symbol __imp__inet_addr@4
sockets.obj : error LNK2001: unresolved external symbol __imp__gethostname@8
system.obj : error LNK2001: unresolved external symbol _uncompress
Debug/DB1.exe : fatal error LNK1120: 18 unresolved externals
Error executing link.exe.

DB1.exe - 19 error(s), 0 warning(s)


Any clue?
icon_eek.gif
MineToo!!
SOS - Sat Feb 01, 2003 11:10 am
Post subject:
Link to ws2_32.lib
Anonymous - Sat Feb 01, 2003 11:14 am
Post subject:
Agh, of course icon_smile.gif

Works now! Thanks!

-MineToo!!
Anonymous - Thu Apr 10, 2003 2:06 pm
Post subject: Mervbot compile
Sorry for bringing up an old post, but I'm having the same problem compiling the MERVbot. I typed

#pragma comment (lib, "Ws2_32.lib")

in one of the headers, and I'm still getting


Compiling...
sockets.cpp
Linking...
system.obj : error LNK2001: unresolved external symbol _uncompress
Debug/Soccer Bot Core.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Soccer Bot Core.exe - 2 error(s), 0 warning(s)

any suggestions?
Anonymous - Fri Apr 25, 2003 10:53 am
Post subject: solution
#pragma comment (lib, "zlibdll.lib")
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group