Results 1 to 6 of 6

Thread: compiling on other than c++ or .net

  1. #1
    Seesjuh
    Settler Seesjuh's Avatar
    Join Date
    29 Dec 2002
    Posts
    15
    Country
    This is Seesjuh's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    19:58

    compiling on other than c++ or .net

    Hi there,


    Been reading in this forum for some time now, have always enjoyed playing CTP1 and 2 so it seems with my computer education background and programming I could contribute something to this great game....

    But... I dont have access to the compilers and laguages you guys have..
    However, I found a free c++ program out there on http://www.bloodshed.net
    I has everything like visualC en .net has only its free....

    I wonder..does anyone know if this could work ??

    I dont want to download the DirectX sdk for half a day only to find out it doesnt work

    Hope y'all can help me out

    Hope to be programming with you soon

    greets!!

    ps... I download the sourcecode, put in the files from my CTP2 cd, download the directX sdk...... and then i download the altered sourcefiles package for most recent version ???

    Thanks again !

  2. #2
    Peter Triggs
    King
    Join Date
    25 Jan 2000
    Location
    Gone Fishin, Canada
    Posts
    1,059
    Country
    This is Peter Triggs's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    19:58
    Hi Seesjuh,

    DevC++ has an 'experimental' feature: files=>import=>import Microsoft Visual C++ project, but I didn't have any luck with it.

    They have a forum; maybe you could get better information about it there.

    Peter

  3. #3
    Fromafar
    Prince
    Join Date
    25 May 2003
    Posts
    622
    Country
    This is Fromafar's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    21:58
    DevC++ uses mingw gcc as compiler (see http://www.mingw.org for newer versions). Actually, I started with mingw before finding out that I did have access to Visual C++ after all.

    I do not want to discourage you, but the current code is using quite a lot of MS Visual C++ 6.0 specific constructs. As far as I know, it has not even been successfully compiled with MS Visual C++ .NET (which is basically MS Visual C++ 7.0).

    With mingw, a couple of makefiles, and some small code changes, I was able to get the map generation DLLs to compile quite easily. But to get the main executable to compile, you have to make a lot of code changes! Some of the issues have been described in
    http://apolyton.net/forums/showthrea...readid=100677.
    The thread is about using gcc under Linux, so some issues (e.g cr/lf line ends, case sensitive includes) will not cause problems with mingw, but others (e.g. MS specific callback declaration syntax) do.

    If you are still interested after reading this, let me know. I still have some (about 40) modified files from my first attempt that have not been included in the altered source file thread yet.

  4. #4
    Seesjuh
    Settler Seesjuh's Avatar
    Join Date
    29 Dec 2002
    Posts
    15
    Country
    This is Seesjuh's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    19:58
    @fromafar:

    Thanks man, If you could send them to me... or up them somewhere I'd still love to look at them...

    I just can't seem to get hold of a affordable version of c++ from ms
    So im stuck with devc++

    Hope to hear from ya soon

    Thanks!

  5. #5
    Fromafar
    Prince
    Join Date
    25 May 2003
    Posts
    622
    Country
    This is Fromafar's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    21:58
    I have added a post in the altered source code thread with the files I have modified.

    For compilation, I have used a bare mingw distribution (3.1.0-1, I believe) in a Windows 2000 DOS box, so I can't give you advice on the DevC++ handling of the project.

    Mingw.zip contains an additional stub, a batch file, and some makefiles I have used. If nothing else, these will indicate how (not at all) far I got before switching to MS VC++.

    Good luck! You may need it.

  6. #6
    Seesjuh
    Settler Seesjuh's Avatar
    Join Date
    29 Dec 2002
    Posts
    15
    Country
    This is Seesjuh's Country Flag
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Local Date
    May 24, 2013
    Local Time
    19:58
    Hi,

    Thansk for the files...
    Downlaoded them and already playing around with em

    Ill post my progress as I make it... and if i make it

    Thansk again!

Similar Threads

  1. Compiling the SDK
    By Locutus in forum Civilization IV Creation
    Replies: 76
    Last Post: November 2, 2009, 10:17
  2. Compiling the SDK to match 1.61
    By smacfan in forum Civilization IV General
    Replies: 2
    Last Post: April 15, 2006, 00:44
  3. Compiling the GTk Client...
    By Dandeloreon1984 in forum Freeciv
    Replies: 10
    Last Post: February 27, 2004, 13:56
  4. Compiling error... AGAIN!!!
    By CMaster2003 in forum Freeciv
    Replies: 4
    Last Post: January 24, 2004, 17:21
  5. Compiling error... please help
    By CMaster2003 in forum Freeciv
    Replies: 2
    Last Post: January 4, 2004, 07:28

Visitors found this page by searching for:

ctp2 mingw

Bookmarks

Posting Permissions