Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Setting Up Visual Studio Code & MinGW

Setting Up Visual Studio Code & MinGW

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpc++visual-studio
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member_14994768
    wrote on last edited by
    #1

    PS C:\Users\anubi\Desktop> cd "c:\Users\anubi\Desktop\" ; if ($?) { g++ Tryout1.cpp -o Tryout1 } ; if ($?) { .\Tryout1 } c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file Tryout1.exe: Permission denied collect2.exe: error: ld returne I can't even run a simple program to print "hello". I installed MinGW and setup the path. What is mising in VSC?

    L D 2 Replies Last reply
    0
    • M Member_14994768

      PS C:\Users\anubi\Desktop> cd "c:\Users\anubi\Desktop\" ; if ($?) { g++ Tryout1.cpp -o Tryout1 } ; if ($?) { .\Tryout1 } c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file Tryout1.exe: Permission denied collect2.exe: error: ld returne I can't even run a simple program to print "hello". I installed MinGW and setup the path. What is mising in VSC?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The message is clear. Either you do not have permission to write into that location, or the file is in use by some other process.

      1 Reply Last reply
      0
      • M Member_14994768

        PS C:\Users\anubi\Desktop> cd "c:\Users\anubi\Desktop\" ; if ($?) { g++ Tryout1.cpp -o Tryout1 } ; if ($?) { .\Tryout1 } c:/mingw/bin/../lib/gcc/mingw32/9.2.0/../../../../mingw32/bin/ld.exe: cannot open output file Tryout1.exe: Permission denied collect2.exe: error: ld returne I can't even run a simple program to print "hello". I installed MinGW and setup the path. What is mising in VSC?

        D Offline
        D Offline
        Dave Kreskowiak
        wrote on last edited by
        #3

        The most common cause of that error is the executable your trying to compile is already running, probably from a previous launch of the app you never closed.

        Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
        Dave Kreskowiak

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups