Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2798

Why do I not have permission to run this mpic command?

$
0
0

I'm very bad with the command line and have just downloaded Ubuntu (in the microsoft store) yesterday. I'm trying to compile and run a cpp file with a specific command. I'm logged in as a non-root user and this is the command I want to use to compile the file:

mpic++ circuitSatisfiability.cpp -Wall -ansi -pedantic -std=c++17 -o circuitSatisfiability

But then I get this message:

/usr/bin/ld: cannot open output file circuitSatisfiability: Permission deniedcollect2: error: ld returned 1 exit statusmpic++: No such file or directory

If I do "ls" I can see my file is in there. Via the windows file I can also see that there is a ".idea" folder. Others could compile this way, why cant I?


Viewing all articles
Browse latest Browse all 2798

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>