User forums > Help
CodeBlocks on Windows LD.exe Cannot find Permission Denied
codemepls:
Thanks, Ive read the FAQs from other posts and same error. This is my build log:
mingw32-g++.exe -Id:\opencv\build\include -I"D:\Program Files (x86)\CodeBlocks" -Id:\mingw\bin -c "C:\Users\NAME\Desktop\C Project\test1.cpp" -o "C:\Users\
NAME\Desktop\C Project\test1.o"
mingw32-g++.exe -Ld:\opencv\build\x86\mingw\build -L"D:\Program Files (x86)\CodeBlocks" -L(invalid)\lib\gcc_dll -Ld:\mingw\bin -o "C:\Users\NAME\Desktop\C Project\test1.exe" "C:\Users\NAME\Desktop\C Project\test1.o" d:\opencv\build\x86\mingw\bin D:\MinGW\bin -lcodeblocks -lwxmsw28u_gcc_cb
d:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find d:\opencv\build\x86\mingw\bin: Permission denied
d:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find D:\MinGW\bin: Permission denied
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 2 second(s))
2 error(s), 0 warning(s) (0 minute(s), 2 second(s))
Thanks!
stahta01:
--- Quote from: codemepls on December 27, 2015, 09:52:03 pm ---Thanks, Ive read the FAQs from other posts and same error. This is my build log:
mingw32-g++.exe -Id:\opencv\build\include -I"D:\Program Files (x86)\CodeBlocks" -Id:\mingw\bin -c "C:\Users\NAME\Desktop\C Project\test1.cpp" -o "C:\Users\
NAME\Desktop\C Project\test1.o"
mingw32-g++.exe -Ld:\opencv\build\x86\mingw\build -L"D:\Program Files (x86)\CodeBlocks" -L(invalid)\lib\gcc_dll -Ld:\mingw\bin -o "C:\Users\NAME\Desktop\C Project\test1.exe" "C:\Users\NAME\Desktop\C Project\test1.o" d:\opencv\build\x86\mingw\bin D:\MinGW\bin -lcodeblocks -lwxmsw28u_gcc_cb
d:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find d:\opencv\build\x86\mingw\bin: Permission denied
d:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find D:\MinGW\bin: Permission denied
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 2 second(s))
2 error(s), 0 warning(s) (0 minute(s), 2 second(s))
Thanks!
--- End quote ---
Step 1: Find out what MinGW GCC Compilers are installed on your machine!!!!
Then decide which one you are going to use in Code::Blocks.
You told me one thing in a prior post but, the log says what you said is FALSE.
Your log said Code::Blocks is set up to use an MinGW bin of "d:/program files (x86)/codeblocks/mingw/bin"
This will often NOT work if you have MinGW GCC installed in a path like "D:\MinGW\bin"
I suggest deleting or renaming one MinGW folders; and seeing if that changes the error.
Tim S.
oBFusCATed:
Your compiler/linker is probably fine.
You have to remove the two folders from the linker settings shown on one of your screen shots.
codemepls:
Thanks, seems to work okay without using OpenCV added into the linker settings... but OpenCV is required in order to compile the code... More troubleshooting...
Navigation
[0] Message Index
[*] Previous page
Go to full version