link step fails with "Access denied" [solved]
Posted: Tue Sep 20, 2011 11:04 pm
Running CodeLite+mingw4.4.1
Everything running fine on one PC - I moved my projects to another PC, and installed the same toolchain there, but when building the executable, the link step fails somewhere in the makefile snippet below
$(OutputFile): $(IntermediateDirectory)/.d ..\..\workspaces\vpg-default\.build-debug\cfc $(Objects)
@$(MakeDirCommand) $(@D) <---- succeeds
@echo "" > $(IntermediateDirectory)/.d
@echo $(Objects) > $(ObjectsFileList)
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions) <---- never gets here
Fails with the error
mingw32-make.exe[1]: Entering directory .........
Access is denied.
minfw32-make.exe[1]: *** [outputfile] Error 1
mingw32-make.exe: *** [All] Error 2
I checked all the file/directory permisions on both the toolchain and my source code and they are fine (note that it even created the output directory successfully). Problem may be in the two @echo lines..
Prior to getting stuck here, it compiles all the .cpp files and before that it compiles and builds a static library successfully.
The problem occurs only when lining to create an executable. The g++ -o outputfile ... log line never shows up
Everything running fine on one PC - I moved my projects to another PC, and installed the same toolchain there, but when building the executable, the link step fails somewhere in the makefile snippet below
$(OutputFile): $(IntermediateDirectory)/.d ..\..\workspaces\vpg-default\.build-debug\cfc $(Objects)
@$(MakeDirCommand) $(@D) <---- succeeds
@echo "" > $(IntermediateDirectory)/.d
@echo $(Objects) > $(ObjectsFileList)
$(LinkerName) $(OutputSwitch)$(OutputFile) @$(ObjectsFileList) $(LibPath) $(Libs) $(LinkOptions) <---- never gets here
Fails with the error
mingw32-make.exe[1]: Entering directory .........
Access is denied.
minfw32-make.exe[1]: *** [outputfile] Error 1
mingw32-make.exe: *** [All] Error 2
I checked all the file/directory permisions on both the toolchain and my source code and they are fine (note that it even created the output directory successfully). Problem may be in the two @echo lines..
Prior to getting stuck here, it compiles all the .cpp files and before that it compiles and builds a static library successfully.
The problem occurs only when lining to create an executable. The g++ -o outputfile ... log line never shows up