View Full Version: Compiling the Source - A Guide for Windows Users

ivan >>Programming >>Compiling the Source - A Guide for Windows Users


<< Prev | Next >>

Hippy- 05-27-2005

Well then delete my post if it makes you fell better.

Severian- 06-03-2005

I have tested the MinGW method, by registering the bin directory in my path, and it work except small change I done for compiling. When I try to compile, all instances to "include SDL.h" are wrong. I made chang to the concerned files by puting "include SDL/SDL.h" and it work. Maibe I have to register SDL for MinGW somewhere. Or kill the SDL directory to put all files one level up in the class directory. But it work, it's the more important ;) Thanks Which one of the two methods mentioned in the tutorial did you follow? And I STILL have to put up that second tutorial. Oopsies. I say it ;) I register the bin directory in the PATH Windows environnement variable But I think the change is needed for the two methods... Hello, first post here, so hello everybody :wink: Had to do like Planplan, changing #include "SDL.h" to #include "sdl/SDL.h" in all files containing it; but now I have this error in SDL_audio.h: Compiling C:\Temp\ivan-0.50\FeLib/Source/bitmap.o... In file included from c:/MinGW/include/sdl/SDL.h:39, from C:/Temp/ivan-0.50/FeLib/Include/graphics.h:17, from C:/Temp/ivan-0.50/FeLib/Source/bitmap.cpp:17: c:/MinGW/include/sdl/SDL_audio.h:97: parse error before `<' token mingw32-make: *** Error 1 Any idea ?

Severian- 06-03-2005

Deleting ligne 97 of sdl_audio.h solved my problem: void (SDLCALL *filters<10>)(struct SDL_AudioCVT *cvt, Uint16 format); That's weird...

MSWAUGH- 07-02-2005

I have tried to compile the game but I am having some problems with it. I got the error message "'mingw32-make' is not recognised as an internal of external command, operable program or batch file." I have looked in bin and found that mingw32-make isn't there. I have downloaded gcc-core-3.4.4-20050522-1.tar, gcc-g++-3.4.4-20050522-1.tar and SDL-devel-1.2.8-mingw32.tar. Have I not downloaded the correct files or have I made a different mistake? I am very new to programming.

TheFallenOne222- 07-04-2005

I have tried to compile the game but I am having some problems with it. I got the error message "'mingw32-make' is not recognised as an internal of external command, operable program or batch file." I have looked in bin and found that mingw32-make isn't there. I have downloaded gcc-core-3.4.4-20050522-1.tar, gcc-g++-3.4.4-20050522-1.tar and SDL-devel-1.2.8-mingw32.tar. Have I not downloaded the correct files or have I made a different mistake? I am very new to programming. Try this download: http://prdownloads.sourceforge.net/mingw/MinGW-4.1.0.exe?download

MSWAUGH- 07-04-2005

Thanks for helping me but I'm getting a few errors now. I have modified the .mak file. I have changed #include "SDL.h" to #include "SDL\SDL.h" and added the SDL includes to ivan-0.50\FeLib\Source. The only error I get is "ISO C++ does not support 'long long'" on lines 75 and 77.

MSWAUGH- 07-08-2005

I have looked at the source code and the problem is in SDL_types. SDL_HAS_64BIT_TYPE is defined as long long or __int64. What changes should I do to get this to compile? I'm not sure if this is the correct place to ask but save.h in the version from the CVS has a problem. The compiler claims to find an extra ';'. Dev-C++ has exactly the same error messages when I tried to compile IVAN.dsw with ivanmgw.mak so this may be another way to compile it when it works. Instead of changing the IVAN sourcecode I have added the SDL includes to ivan\FeLib\Include. EDIT: I now have the normal version compiled. I eddited SDL_types and removed a lot of code. I still can't compile the new version from the CVS.

qalnor- 07-31-2005

Something I think should be clarified beyond how it is in this excellent article: x:\mingw\include\sdl\*.* should be moved to x:\mingw\include to conform with how sdl.h is referenced throughout the code.

Apsu- 12-20-2005

When I tried to compile I got it all ok until got message "FeLib/include/graphics.h:53 error: ISO C++ forbids declaration of 'SDL_Surface' with no type" Been trying to get this work for a while already and I don't know what I should try next, so I thought ask you O More Wise People if you can tell me what I'm doing wrong :lol:

Atomic- 02-10-2006

I've been making progress in building from home on MSVC++ 6.0, but have a few more issues... I was going to wait 'til tomorrow and just ask Ighalli, but I suppose if I post it here I won't forget. :D Anyways. Link errors in the intermediary files: unresolved external dependancies. 11 of them. Now, it's been quite a while since I coded, so that makes little sense to me (if it ever would have), but beyond that, I have no idea how to fix it...

lobban- 04-13-2006

Atomic: I would be really pissed by now ;) .. I envy you programmers, I only now BASIC and I don't get what void main() means. I mean "void" I know it's a variable class. But I can't find any more information than that.

Z- 04-13-2006

It should be int main() not void main(). And it means that it is a function main() which returns an integer. (And void main() means that it just does what it has to do and returns nothing, but it is rather not OK because main() should return an integer.)

lobban- 04-16-2006

Okay, I think I understand it actually :). Thx

lobban- 04-21-2006

It sure would help me if I could get this to compile in VC++. I hope it's just a matter of time, I've got tons of ideas. :)

Andy- 04-28-2006

What about code::blocks? How could I set that up to compile IVAN? I've gone through hell trying it today :)

Forumer™ is Voted #1 Free Forum Hosting provider
Build your own community today with the largest message board hosting company.