Thread: Beginner's problem: Trouble to connect MinGW of Code:Blocks to my Windows

  1. #1
    Registered User
    Join Date
    Dec 2018
    Posts
    36

    Beginner's problem: Trouble to connect MinGW of Code:Blocks to my Windows

    Hi!

    I finally have started to studying CS and within our first program lessons we got following task to do at home:

    Basically after have been installing the C-workspace Code::Blocks, we shall also somehow connect its compiler with our windows to be able to use the GNU Compiler Collection without Code::Blocks.
    In the script it describes how to do that, but following step looks different on my laptop to what it does look within the lecture notes.

    First, at the lecture notes it looks like that:

    Screenshot - d1ea89bf103836c9495348ff2f512888 - Gyazo

    When I want to add the path of the MinGW-compiler to the highlighted systemvariable by clicking edit,
    I can see many different paths and I do not know where exactly I should add the MinGW-compiler path and if I should remove some of the paths you can see here:

    Screenshot - 97615bcb0d343608a211cc7c89228f14 - Gyazo

    I would be grateful for any help and I do hope it is clear enough what I mean, since I lack the knowledge to even describe 100% what there must be done.

    Regards,
    Placebo

  2. #2
    Informer -Adrian's Avatar
    Join Date
    Jan 2013
    Posts
    820
    That simply looks like W7 vs W10 difference. Judging by the screenshot of your system, you can simply click New and add the path to your MinGW bin directory to the list. The order of entered paths should not be relevant in this case.

  3. #3
    Registered User
    Join Date
    Dec 2018
    Posts
    36
    Hey, thanks for replying, much appreciated
    I have followed your advice and simply added the path of the MinGW bin directory to the list and for testing purpose, we have been instructed to do then this quick check:

    Screenshot - 948dee053183ccec812d3303e0af8d0c - Gyazo

    But somehow it did not work out

    Screenshot - a1a4457a9e4f5b3ce17c709af9e0c231 - Gyazo

    So I guess I have followed your advice wrongly?

  4. #4
    Informer -Adrian's Avatar
    Join Date
    Jan 2013
    Posts
    820
    Hmm, it should work. Have you tried again after rebooting? I think that might be necessary on Windows.

    And make sure the file exists in that directory. If your instructions haven't been updated in while, maybe the MinGW installation has changed too.
    Last edited by -Adrian; 03-04-2019 at 09:27 AM.

  5. #5
    Registered User
    Join Date
    Dec 2018
    Posts
    36
    Quote Originally Posted by -Adrian View Post
    Hmm, it should work. Have you tried again after rebooting? I think that might be necessary on Windows.
    This was it!
    So, we are all good now - thanks a lot for your help, sir

  6. #6
    Informer -Adrian's Avatar
    Join Date
    Jan 2013
    Posts
    820
    You're most welcome, happy coding!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code::Blocks - MinGW - Problems with GLEW and SDL2
    By Raygler in forum C++ Programming
    Replies: 2
    Last Post: 06-27-2016, 11:59 AM
  2. (Very) New Beginner Difficulties with Code::Blocks IDE
    By user100 in forum C Programming
    Replies: 7
    Last Post: 08-05-2015, 10:42 AM
  3. Beginner Code::Blocks help. How do I add libraries?
    By Camjerlams in forum C Programming
    Replies: 2
    Last Post: 12-17-2013, 03:58 AM
  4. Trouble installing SDL into Code:Blocks on windows7
    By HelpfulPerson in forum C Programming
    Replies: 1
    Last Post: 07-07-2013, 03:20 PM
  5. Trouble with MSVC, Mingw32 and Code::Blocks
    By Brafil in forum C Programming
    Replies: 11
    Last Post: 10-12-2009, 11:34 AM

Tags for this Thread