Errors when compiling with Visual Studio

Posted by Basil on Wed 12 Jun 2002 06:27 PM — 5 posts, 22,751 views.

#0
Hi im new to programming and have been reading the forum for a couple of weeks now but im having problems.
i cant figure out how to compile smaug. this is what im using.

OS. windows 2000
compiler. visual studio 6.0 (have also tried cygwin)
source. smaug 1.4a downloaded from here http://www.cs.utk.edu/~london/smaug/

the problem with visual studio is that when i do try to build it it comes up with a whole bunch of errors (44 i think) and then it doesnt do anything after that. and the reason i failed to do it in cygwin probably was because of how little i know of using it.

any help you could give me would be greatly appreciated.
USA #1
I'm not familiar with Visual Studio 6.0 but I do know how Cygwin works. After you download the smaug files and unzip it, you're almost ready to compile. If you still have Cygwin make sure you also got the binutils, gcc and make packages. If you don't you can easily get them from the Cygwin website. Then just start up the Cygwin bash shell-prompt-thingie. Move into the smaugs src directory, ie 'cd C:/dist/src' or where you happen to put it. Then all you need to do is type 'make clean' and then 'make'. After waiting for it to compile just find the smaug.exe in the src directory, move it to the area folder. Make sure you also put copy of cygwin1.dll in there, just search for it with you window search/find program. Then just double click the smaug.exe and log on with your telnet/client.

Hope this helps.
Australia Forum Administrator #2
Unfortunately, no one can help you if you just say "it comes up with a whole bunch of errors". Try letting us know what the errors are, or at least the first 20. You can click in the errors window, and copy and paste them here.
#3
this is what it says.

Configuration: smaug - Win32 Debug--------------------
Build : warning : failed to (or don't know how to) build 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\update.c'
Compiling...
act_comm.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\act_comm.c': No such file or directory
act_info.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\act_info.c': No such file or directory
act_move.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\act_move.c': No such file or directory
act_obj.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\act_obj.c': No such file or directory
act_wiz.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\act_wiz.c': No such file or directory
ban.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\ban.c': No such file or directory
boards.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\boards.c': No such file or directory
build.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\build.c': No such file or directory
clans.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\clans.c': No such file or directory
colorize.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\colorize.c': No such file or directory
comm.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\comm.c': No such file or directory
comments.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\comments.c': No such file or directory
const.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\const.c': No such file or directory
db.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\db.c': No such file or directory
deity.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\deity.c': No such file or directory
fight.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\fight.c': No such file or directory
grub.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\grub.c': No such file or directory
handler.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\handler.c': No such file or directory
hashstr.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\hashstr.c': No such file or directory
ibuild.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\ibuild.c': No such file or directory
ident.c
fatal error C1083: Cannot open source file: 'C:\Documents and Settings\Administrator\My Documents\smaug\dist\src\ident.c': No such file or directory
imm_host.c


this is just a couple of them. there are 43 errors when it finishes. do you need any other information?
#4
i figured out how to compile it. i had to put everything in a new folder but it is working now.