Open World Soccer Forum Index Open World Soccer
Community Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compile in Windows (part 1: install MinGW and MSYS)

 
Post new topic   Reply to topic    Open World Soccer Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Massimo32
Site Admin


Joined: 11 Nov 2007
Posts: 177
Location: Bolzano, Italy

PostPosted: Tue Sep 08, 2009 10:36 pm    Post subject: Compile in Windows (part 1: install MinGW and MSYS) Reply with quote

These are the steps I'm following to compile OWS in Windows XP.

From:

http://sourceforge.net/projects/mingw/files/Automated%20MinGW%20Installer/

Download MinGW-5.1.4.exe

Setup:
Quote:

Mode: Downwload and install
Version: Previous
Components: MinGW base tools, g++ compiler
Path: C:\MinGW


From:

http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/

Download MSYS-1.0.11.exe

Setup:

Quote:

Path: C:\msys\1.0

Post install:
Do you wish to continue with the post install? [yn ] y
Do you have MinGW installed? [yn ] y
Where is your MinGW installation? c:/mingw


At this point you should be able to compile windows programs.

In order to test the setup, you may want to perfom a little "hello world" check:

- in the folder C:\msys\1.0\home\yourusername, create the file hello.cpp:

Code:

#include <iostream>

int main()
{
   std::cout << "Hello world!" << std::endl;
}



- launch MSYS from the icon on your desktop

- compile and run hello.cpp

Code:

$ g++ hello.cpp -o hello
$ ./hello.exe
Hello world!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Open World Soccer Forum Index -> Programming All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Get Open World Soccer at SourceForge.net. Fast, secure and Free Open Source software downloads