Valhalla Legends Forums Archive | Battle.net Bot Development | The best compiler for do Bots

AuthorMessageTime
WeepingSoul
Hello, I would like to learn C++ from zero, but knowing what compiler is the best one to make for example a bot for D2... for read a tutorial dedicated to that compiler... what compiler you recommend to me? ???
December 29, 2005, 11:29 PM
dRAgoN
[s]http://www.google.ca/search?hl=en&q=visual+bot+studio%21&btnG=Search&meta=[/s]

http://msdn.microsoft.com/vstudio/
December 30, 2005, 5:00 AM
Quarantine
It would help if you told us your operating system..
December 30, 2005, 5:22 AM
Kp
[quote author=Warrior link=topic=13700.msg139842#msg139842 date=1135920120]
It would help if you told us your operating system..
[/quote]

Or we could just recommend GCC.  It runs on so many different systems, it won't matter much what he's running.
December 31, 2005, 3:16 AM
Quarantine
I've had numerous problems running it under Windows, MingW can't produce 16 bit code and using cygwin is horrible. Tried to build a cross compiler as well with no success, some people have done it but I don't have the patience to wait a while for something to compile and then for it to return errors that I don't want to deal with. DJGPP is okay but it has a bunch of issues and it's really meant for DOS and has some DOS limitations.
December 31, 2005, 3:19 AM
MesiaH
lmao at visual bot studio!

dragon > *
January 2, 2006, 11:45 PM
Spilled[DW]
Dev-C++ Is what i prefer.
January 3, 2006, 12:15 AM
bethra
I use Microsoft Visual Studio, but I'm running Windows XP Pro.  It's a nice Windows compiler IMO, however since it IS Microsoft and it is for Windows only, there seems to be things (more than I know about) that it will let you get away with because you are programming in Windows.

I'll give two examples of what I'm talking about that I learned when I participated in the ACM (Association for Computer Machinery) Programming Competition in the Fall at the University of Virginia.  The computers that we were to program on were running Linux (Fedora) and the compiler was GCC I believe.  The available editors were vi/vim and some others who's names I forgot.

First off, when I started programming with my 3 man team I accidentally wrote the statement,
[code]
#include <iostream.h>
[/code]
I was told by a teammate will this will not compile even though it will in Visual C++.  The correct statement is,
[code]
#include <iostream>
[/code]

Secondly, I was told that you must include the statements like,
[code]
using std::cin;
[/code]
You do not need to include when programming in Visual C++.

These are just a couple of things I encountered when programming in an foreign environment and different compiler.

Visual Studio/Visual C++ has a nice GUI and editor with features that make programming easier.  However I don't have any experience with any other compilers and editors for Windows or Linux, so I can't be of much help sorry.
January 3, 2006, 1:22 AM
Kp
[quote author=Warrior link=topic=13700.msg139919#msg139919 date=1135999197]
I've had numerous problems running it under Windows, MingW can't produce 16 bit code and using cygwin is horrible. Tried to build a cross compiler as well with no success, some people have done it but I don't have the patience to wait a while for something to compile and then for it to return errors that I don't want to deal with. DJGPP is okay but it has a bunch of issues and it's really meant for DOS and has some DOS limitations.
[/quote]

I've never had problems getting the MinGW binaries to work on Windows, and it works fine when cross-compiled as well (host=i386-pc-linux, build=i386-pc-linux, target=i686-pc-mingw32).  It took me a while to find the resources on how to build a cross-compiler that targets such a broken system, but the build was clean and easy once I found the instructions.  Really though, if you're much of a programmer you should expect that not everything will work on the first try!

[quote author=Spilled[DW] link=topic=13700.msg140174#msg140174 date=1136247323]
Dev-C++ Is what i prefer.
[/quote]

Ugh, not another one of you.  How many times does it have to be said that Dev-C++ is not a compiler?  Quote from the Dev-C++ webpage:

[quote]It uses Mingw port of GCC (GNU Compiler Collection) as it's compiler.[/quote]

(Extra hyperlinks mine, unfortunately.  The Dev-C++ page authors ought to have made those links on their page too...)
January 3, 2006, 1:24 AM
Quarantine
Well MingW worked fine it just wouldn't produce 16Bit code to for example to use int86() function which I really needed but I guess it wouldn't matter much for bots. It also if I remember correctly had problems linking to a format such as elf or a.out, ld kept giving me an error about it being a PE format.

Nah I didn't try to cross compile MinGW, I tried to recompile GCC on cygwin to get a platform independant version. I guess I was a little annoyed at the fact that it didn't work after all the reading and messing around I did. Oh well.

I really didn't like all the headache so I just switched to Linux and built a cross compiler on there with no problems.
January 3, 2006, 1:57 AM
Spilled[DW]
[quote author=Kp link=topic=13700.msg140178#msg140178 date=1136251460]
[quote author=Spilled[DW] link=topic=13700.msg140174#msg140174 date=1136247323]
Dev-C++ Is what i prefer.
[/quote]

Ugh, not another one of you.  How many times does it have to be said that Dev-C++ is not a compiler?  Quote from the Dev-C++ webpage:
[/quote]

Meh, you know what I mean
January 3, 2006, 7:13 AM
Kp
[quote author=Spilled[DW] link=topic=13700.msg140221#msg140221 date=1136272417][quote author=Kp link=topic=13700.msg140178#msg140178 date=1136251460][quote author=Spilled[DW] link=topic=13700.msg140174#msg140174 date=1136247323]Dev-C++ Is what i prefer.[/quote]Ugh, not another one of you.  How many times does it have to be said that Dev-C++ is not a compiler?  Quote from the Dev-C++ webpage:[/quote]Meh, you know what I mean[/quote]

Yes, and from your reaction you knew what you meant, but you still chose to write the wrong thing.  Hence why I corrected you, because not everyone else will necessarily know what you meant.
January 4, 2006, 12:17 AM
Skywing
[quote author=l)ragon link=topic=13700.msg139841#msg139841 date=1135918800]
[s]http://www.google.ca/search?hl=en&q=visual+bot+studio%21&btnG=Search&meta=[/s]

http://msdn.microsoft.com/vstudio/
[/quote]

To add to this, Microsoft has some freely available offerings that you could use if you are targetting Win32:

http://msdn.microsoft.com/vstudio/express/visualc/ (VC8 express edition - includes an IDE as well as the compiler.)
http://msdn.microsoft.com/visualc/vctoolkit2003/ (VC7.1 compiler tookit.  This is just the compiler without an IDE.)

One advantage to using VC instead of mingw for Win32 is that you get the platform's native symbol format (pdb) and any native Win32 debugger will load your symbols properly.  Last time I checked mingw32 didn't support writing pdb files, although that was a year or so ago.
January 5, 2006, 6:05 PM
Spilled[DW]
[quote author=Kp link=topic=13700.msg140322#msg140322 date=1136333876]
[quote author=Spilled[DW] link=topic=13700.msg140221#msg140221 date=1136272417][quote author=Kp link=topic=13700.msg140178#msg140178 date=1136251460][quote author=Spilled[DW] link=topic=13700.msg140174#msg140174 date=1136247323]Dev-C++ Is what i prefer.[/quote]Ugh, not another one of you.  How many times does it have to be said that Dev-C++ is not a compiler?  Quote from the Dev-C++ webpage:[/quote]Meh, you know what I mean[/quote]

Yes, and from your reaction you knew what you meant, but you still chose to write the wrong thing.  Hence why I corrected you, because not everyone else will necessarily know what you meant.
[/quote]

I apologize.
January 5, 2006, 6:13 PM

Search