![]() But if that were your problem, you would not be able to compile anything, and you say you can compile other things besides shell.c. It seems to be reporting a permissions problem affecting cc1, which is an internal component of the compiler, which is why the previous version of this answer said “your installation of GCC is broken”. The error message you said you got doesn’t refer to shell.c at all. Solution: cc1: fatal error: permission deniedĪre you certain that this is the exact text of the error message? Could it have instead been this? cc1: fatal error: shell.c: permission deniedĮvery single word counts in Unix-style error messages. It is not! Sudo solved my problem (I understand that it’s not the best solution, that’s why I’m trying to find another one), but I had the problem before I used sudo. 1 Lightning Lightning 17310 Jan 16 23:35 shell.cĪnd to clarify as a lot of you understand that I used sudo and that the shell file is the problem. shell.c shell I get: drwxr-xr-x 0 Lightning Lightning 512 Jan 16 23:35. The problem is when I try to do this: gcc -o shell shell.cĬc1: fatal error: shell.c: Permission denied I wrote my own shell in terminal but I did something wrong and deleted days of work by accident… So to be sure I started and wrote it again in codeblocks and just copied the c file in the directory so that i can see the file when i do the command ls. I have bash on ubuntu on windows installed on my windows 10. I know this question was asked before, but I already tried to use chmod or sudo and it’s still not working. WARN: Waiting for se… on OSSEC start problem due to… Gamejudilebaran.word… on Chef: Roles and Environme… TCP performance features September 5, 2021.Congestion control algorithms September 5, 2021.Network monitoring tools September 5, 2021.exe's, but I'm not that knowledgeable about Win 7 as to know where to begin searching.Enter your email address to follow this blog and receive notifications of new posts by email. I wonder whether there is some Windows 7 security setting playing havoc with my. I've googled this somewhat, but most of the other results were either vague or inapplicable. I'm not running cygwin in any shape or form.Īnd now for the funny bit: Usually after a few minutes, any executables generated by mingw32 which are displaying this Access Denied behaviour will automatically vanish without any intervention from me.Path to executable is read/writable to mingw32 (otherwise it wouldn't be able to build in the first place).I can't even edit the permissions of the generated executable. The problems occur if I try to compile again, then I get the following:Ĭ:/codeblocks/mingw/bin/./lib/gcc/mingw32/4.4.1/././././mingw32/bin/ld.exe: cannot open output file bin\Debug\Fibonacci.exe: Permission denied The program compiles, links and whatnot like a charm and I get a corresponding executable which runs as expected. I decided to fire off a short Fibonacci generator to make sure my setup was working, but I ran into a hurdle. I recently installed CodeBlocks with mingw32 on Windows 7 Ultimate 32bit in order to dust off my c skills, but this problem has me somewhat stumped.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |