Menu

Working with Vista

2007-04-14
2012-09-26
  • Nobody/Anonymous

    I know that there are other related threads but I thought that I should start one showing Bloodshed Dev C working successfully under Windows Vista

    I have been a happy user of Bloodshed Dev C under Windows XP, but my attempts to use it with Vista had always ended in failure. I had seen forum postings where others had similar problems and where a few had posted solutions - however their instructions didn't seem to work for me.

    This is possibly because I was trying to install the Bloodshed Dev C with it's own builtin MinGW GCC environment (which apparently has path related bugs). When Bloodshed was installed under Vista it seemed that the MinGW files got put in the wrong places. Even when I manually corrected this I couldn't make GCC find all the files it needed.

    So I decided to try installing the latest candidate MinGW first and then Install Bloodshed Dev C to use this instead of its own built in compiler. This also has the advantage of allowing a much newer MinGW - in fact I ended up installing GCC 4.1.2 instead of using the built in GCC 3.4.2

    Here is what I did:-

    Step 1 - Install the latest candidate MinGW

    Go to http://prdownloads.sourceforge.net/mingw

    Download and run the current MinGW installer:- MinGW-5.1.3.exe

    For installation I selected:-
    Download and install
    Candidate
    Install MinGW base tools & MinGW Make
    to
    C:\MinGW

    This installed the following components:-
    W32api-3.9
    mingw-runtime-3.12
    mingw32-make-3.81
    binutils-2.17.50
    gcc-core-3.4.5

    Step 2 - Install Bloodshed Dev C WITHOUT MinGW

    Go to http://www.bloodshed.net/dev/devcpp.html

    Download and run Dev-C++ 5.0 beta 9.2 (4.9.9.2), executable only (2.4 MB)

    The link will get devcpp-4.9.9.2_nomingw_setup.exe from sourceforge:-
    http://sourceforge.net/project/downloading.php?groupname=dev-cpp&filename=devcpp-4.9.9.2_nomingw_setup.exe

    I installed using the defaults (to C:\Dev-Cpp)

    Step 3 - Configure Bloodshed Dev C to use the already installed MinGW

    Run Bloodshed Dev C

    (You may end up allowing Bloodshed Dev C to use MinGW Make instead of GNU Make)

    Select the Tools -> Compiler Options menu item

    Under the Directories -> Binaries tab add two new paths (for MinGW and GCC libexec components):-

    C:\MinGW\bin
    C:\MinGW\libexec\gcc\mingw32\3.4.5
    

    And voila - now you should be able to compile programs!

    Step 4 - Optional update to GCC 4.1.2 compiler using TDM's binary distribution of GCC 4.1.2

    Read the caveats from http://www.tdragon.net/gcc412.html

    Follow the link to http://hosted.filefront.com/tldragon7

    Download the GCC binaries file gcc-4.1.2-i386-pc-mingw32.7z

    Unpack this archive into C:\MinGW overwriting the existing files (may require 7 Zip)

    Configure Bloodshed Dev C to use the appropriate libexec path by selecting
    the Tools -> Compiler Options menu item

    In the Directories -> Binaries tab ensure there is a libexec path for C:\MinGW\libexec\gcc\mingw32\4.1.2

    The result is that there should be three paths for binaries in the compiler option directories:-

    C:\Dev-Cpp\Bin
    C:\MinGW\bin
    C:\MinGW\libexec\gcc\mingw32\4.1.2
    

    Hopefully you can now compile your programs under Windows Vista! (I only tested C - not C++)!

    Goodluck

    Paul
    (Paulnank)

     
    • Kip

      Kip - 2007-08-12

      Just use apt. It takes care of all that for you.

      http://www.ubuntu.com/download

      Kip

       
    • Nobody/Anonymous

      I can't compile c++ progs! What's the matter? :(

       
      • Wayne Keen

        Wayne Keen - 2007-08-12

        Are you Paul, or just someone who dropped by with a DFI question?

        Wayne

         
    • Wayne Keen

      Wayne Keen - 2007-08-12

      Paul, if you are simply going to use the 4.1.2, then downloading the version
      from Nuwen is probably a better choise.

      From the TDM site, I go ahead and download the 4.2.1 stuff - 4.2 is a big
      enhancement over 4.1. I tend to download all the modules, including things
      like objective-c++ that I don't use much.

      I unzip each into its own directory, and seperately copy them over my existing
      MinGW directories. It has worked for two versions of 4.2.1 so far.

      Just a suggestion, take or discard as you see fit.

      Wayne

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.