Dev C ++ compilation error, access denied

I want to compile a code program using dev C ++ compiler, but my compiler did not compile my code. The program consists of two files: one is the header, and the other is the .cpp implementation file. The code I want to compile is correct and works, but it did not compile on my computer (Windows 7) Please help

The error I get is

  Permission denied 
  ld returned 1 exit status 
  C:\Makefile.win [Build Error]  [Project1.exe] Error 1 

here is my compilation log

Compiler: Default compiler
Building Makefile: "C:\Makefile.win"
Executing  make...
make.exe -f "C:\Makefile.win" all
g++.exe -c testProgDoublyLinkedList.cpp -o testProgDoublyLinkedList.o -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include"   

g++.exe testProgDoublyLinkedList.o  -o "Project1.exe" -L"C:/Dev-Cpp/lib" -mwindows  

C:\Dev-Cpp\Bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot open output file Project1.exe: Permission denied
collect2: ld returned 1 exit status

make.exe: *** [Project1.exe] Error 1

Execution terminated
+5
source share
7 answers

Windows 7 does not allow writing directly to the root c:\(among other places), unless from a process running as an administrator.

c:\ - , c:\projects .

+2

, , .

, .

+2

7
1.
2. , 3.
4. .
. , avast anti virus. .

+1

Windows 7

" ", makefile , .cpp,.dev,.c, .dev .cpp .c, .

0

, . , . , .

0

C:\Dev-Cpp\Bin..\lib\gcc\mingw32\3.4.2........\mingw32\bin\ld.exe: Project1.exe: collect2: ld 1

, , . , .

, - , .

0

exe , . . 1-2 , . , . , . . ,

0

All Articles