compiler for windows

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

compiler for windows

Post by michellembrodeur » Sun Aug 21, 2005 10:24 pm

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
Knight
Knight
Posts: 1746
Joined: Sat Aug 07, 2004 11:47 am
Location: Germany->Bavaria

Post by Matt » Sun Aug 21, 2005 10:42 pm

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: Thu Jul 14, 2005 10:24 am
Location: Vokietija

Post by ktm » Sun Aug 21, 2005 11:01 pm

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
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Mon Aug 22, 2005 10:40 am

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: Thu Jul 14, 2005 10:24 am
Location: Vokietija

Post by ktm » Mon Aug 22, 2005 12:17 pm

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
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Mon Aug 22, 2005 1:53 pm

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

Post by ktm » Mon Aug 22, 2005 4:12 pm

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
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Mon Aug 22, 2005 6:25 pm

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

Post by drboom » Wed Aug 24, 2005 11:38 am

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
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Wed Aug 24, 2005 12:20 pm

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: Mon Aug 22, 2005 7:59 am

Post by drboom » Wed Aug 24, 2005 1:03 pm

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
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Wed Aug 24, 2005 1:07 pm

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: Mon Aug 22, 2005 7:59 am

Post by drboom » Wed Aug 24, 2005 1:26 pm

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
TMW Adviser
TMW Adviser
Posts: 2526
Joined: Tue Apr 13, 2004 8:11 pm
Location: Italy
Contact:

Post by ElvenProgrammer » Wed Aug 24, 2005 5:38 pm

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: Wed Sep 08, 2004 8:48 pm
Location: Espoo, Finland

Post by Rotonen » Wed Aug 24, 2005 7:06 pm

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