I am very new to Linux, and thus have very noob questions. I currently have Ubuntu 14.04 LTS installed on my hard disk. However, my biggest issue is with flash drives. I have all of my .cpp files on my flash drive, but when I go to compile them in the terminal, I am presented with:
bash./ permission denied
And through some research, I have found out that this is because my flash drive has not been manually mounted, leaving me without permission to access these files. Now I have a few questions:
1) What is the purpose of manually mounting a flash drive
2) And how can I go about mounting my flash drive so that I have the permission to write new .cpp files, and also compile them.
Thank you!
.exe
extension. This should solve your problem. For example:g++ test.cpp -o test.exe
wheretest.cpp
is your C++ file. – Harris May 19 '16 at 17:39.exe
seems to run ok. – Harris May 19 '16 at 17:49Projects Properties
click theBuild targets
tab, change the output filename to .exe and un-tick theAuto-generate filename extension
. – Harris May 19 '16 at 18:22