compiler for windows

Ask for help regarding any technical issue or report any bug or OS independent issues.
michellembrodeur
Peon
Peon
Posts: 40
Joined: 26 Jun 2005, 20:05

compiler for windows

Post by michellembrodeur »

Does anyone know of any free compilers for windows to compile the CVS version of this game.

Also how to run it and compile the game.

thanks

Michelle
Matt
Grand Knight
Grand Knight
Posts: 1759
Joined: 07 Aug 2004, 10:47
Location: Germany->Bavaria

Post by Matt »

1) Download & install this:
http://prdownloads.sourceforge.net/dev- ... _setup.exe

2) Download & install (double click) this:
http://themanaworld.sf.net/files/tmw-cvs.DevPak

3) Open the .dev file from CVS & Compile it

4) Be happy.
User avatar
ktm
Novice
Novice
Posts: 201
Joined: 14 Jul 2005, 09:24
Location: Vokietija

Post by ktm »

the bloodshed package matt mentioned is probably your best bet, but if you want to try some other compilers: the beta versions of ms's visual studio are free, afaik. then there's mingw (windows port of gcc) or cygwin. and the intel compiler's free for private, non-commercial use, afaik, and generates *damn well optimized* binaries.
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

Just some useful links:

http://themanaworld.org/cvs-tutorial.txt

http://cvs.sourceforge.net/viewcvs.py/t ... iew=markup

If you're interested in using MS Visual Studio 2005 Express Beta2, you can grab the project file here http://themanaworld.homeip.net/tmw

I know of another free compiler for windows: lcc, but I don't know if it works or if it's supported.

ktm: are you sure intel compiler is free? I could only find free evaluation kit. Can you maybe throw a link?
User avatar
ktm
Novice
Novice
Posts: 201
Joined: 14 Jul 2005, 09:24
Location: Vokietija

Post by ktm »

now that i did some research on that subject, turns out only the linux c++/fortran compilers are free :/ sorry to disappoint you there.
but of course you can always get yourself some free mail addresses (or use "elve.n@gmail.com","el.v..en@gmail.com" etc) and just dl a new one-month-trial keyfile every few weeks ;)
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

Oh well I could have been interested in it only if it was really free.
User avatar
ktm
Novice
Novice
Posts: 201
Joined: 14 Jul 2005, 09:24
Location: Vokietija

Post by ktm »

switch to a real os, then. bang, free intel compiler :D c'mon, you know you want to!
(unless you get a *real* real os - there is no *bsd version of the compiler yet, is there?)
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

I'm just switching, but I already corrupted my linux installation :oops:
drboom
Peon
Peon
Posts: 13
Joined: 22 Aug 2005, 06:59

Post by drboom »

Got a problem! I used devc++(beta),got the pak,and compiled the project but the at "g++.exe -D__DEBUG__ obj/base64.o(...so on) "compiler command I received "Bad command or file name" error.I executed this command from my ms command prompt and it seems that it truncates the command so I received the same error(btw I use windows 98 ).What can I do?Can you suggest me a program that executes such long commands without truncate them?
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

Well dev-cpp works very well in windows xp and it should as well in windows 98, i sincerely didn't completely understand your problem, maybe you can paste the compiler output somewhere? And I can't see why the DEBUG flag is defined.
drboom
Peon
Peon
Posts: 13
Joined: 22 Aug 2005, 06:59

Post by drboom »

Here it is:
"Compiler: Default compiler
Building Makefile: "C:\My Documents\tmw\tmw\Makefile.win"
Executing make...
make.exe -f "C:\My Documents\tmw\tmw\Makefile.win" all
windres.exe -i The_Mana_World_private.rc --input-format=rc -o obj/The_Mana_World_private.res -O coff

g++.exe -D__DEBUG__ obj/base64.o obj/being.o obj/configuration.o obj/engine.o obj/floor_item.o obj/game.o obj/graphics.o obj/log.o obj/main.o obj/map.o obj/sound.o obj/spriteset.o obj/buddywindow.o obj/button.o obj/buy.o obj/buysell.o obj/char_select.o obj/char_server.o obj/chargedialog.o obj/chat.o obj/chatinput.o obj/checkbox.o obj/confirm_dialog.o obj/equipmentwindow.o obj/gui.o obj/item_amount.o obj/itemcontainer.o obj/listbox.o obj/login.o obj/minimap.o obj/newskill.o obj/npc.o obj/npc_text.o obj/ok_dialog.o obj/passwordfield.o obj/playerbox.o obj/progressbar.o obj/radiobutton.o obj/requesttrade.o obj/scrollarea.o obj/sell.o obj/setup.o obj/shop.o obj/skill.o obj/slider.o obj/stats.o obj/status.o obj/textbox.o obj/textfield.o obj/trade.o obj/window.o obj/windowcontainer.o obj/network.o obj/protocol.o obj/buddylist.o obj/image.o obj/iteminfo.o obj/itemmanager.o obj/mapreader.o obj/music.o obj/resource.o obj/resourcemanager.o obj/soundeffect.o obj/help.o obj/inttextbox.o obj/focushandler.o obj/popupmenu.o obj/browserbox.o obj/updatewindow.o obj/vbox.o obj/box.o obj/equipment.o obj/item.o obj/inventorywindow.o obj/inventory.o obj/configlistener.o obj/openglgraphics.o obj/The_Mana_World_private.res -o "tmw.exe" -L"C:/DEVC/lib" -mwindows -lguichan -lguichan_sdl -lguichan_opengl -lwsock32 -lSDL_image -lSDL_mixer -lmingw32 -lSDLmain -lSDL -lxml2 -lopengl32 -lz -lphysfs -lcurl -g3 -fmessage-length=0 -mmmx

Bad command or file name

Execution terminated
Compilation successful
"
I know it seems ok but when i click run I receive the message
"Project is not compiled"
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

Did you try uninstalling dev-cpp, removing dev-cpp folder and mingw if you installed in a different location and reinstall dev-cpp again?
And make sure you downloaded dev-cpp version which includes mingw (I know it's dumb, but another person already did it).
drboom
Peon
Peon
Posts: 13
Joined: 22 Aug 2005, 06:59

Post by drboom »

I have installed and uninstalled several times with no effect.What's mingw? I got dev-cpp from Matt's link
(http://prdownloads.sourceforge.net/dev- ... _setup.exe)
Isn't any other compiler that works on win 98?
User avatar
ElvenProgrammer
Founder
Founder
Posts: 2526
Joined: 13 Apr 2004, 19:11
Location: Italy
Contact:

Post by ElvenProgrammer »

I can only think about using visual studio at the moment, which I'm sure works. Anyway if you don't have so much practice compiling tmw, I suggest you get latest cvs and this executable http://themanaworld.homeip.net/tmw/tmw.exe which is updated very frequently.
User avatar
Rotonen
TMW Adviser
TMW Adviser
Posts: 3154
Joined: 08 Sep 2004, 19:48
Location: Bern, Switzerland

Post by Rotonen »

It looks to me that your issue is with your global PATH variable. Your compiling related executables are for some reason not defined in your PATH variable (or rather the path to them isn't), and hence you cannot execute them from anywhere on your system. Unfortunately I'm not that familiar with Windows 98 anymore, so I cannot help much, but if I recall right, the PATH variables are defined in your autoexec.bat and/or in your config.sys.

Now that you have a clue what it's about, you can seek advise from a more knowledgeable person than me, good luck on your quest for information! (May Google be with you!)
This message used to be meaningful.
Locked