User forums > Help

Why I got Error - "No such file or directory"?

<< < (2/4) > >>

wever:
CodeBlocks_13.12\MinGW\bin>gcc --version
gcc (tdm-1) 4.7.1

I have use the 8.3 format because the compiler gives me errors otherwise. This is just the version which is in the Code::Blocks installation file.

Full Build log:

mingw32-g++.exe -Wall -fexceptions -g -I"W:\___NEW PROJECTS\GaussianBlur\OPENCL tests\opencl\cl" -IC:\PROGRA~1\AMDAPP~1\linclude\CL -c W:\___NEW_PROJECTS\GaussianBlur\Gaussian_with_OpenCL\main.cpp -o obj\Debug\main.o
mingw32-g++.exe -LC:\PROGRA~1\AMDAPP~1\lib\x86\ -o bin\Debug\Gaussian_with_OpenCL.exe obj\Debug\main.o  -lOpenCL  "C:\Program Files\AMD APP\lib\x86\OpenCL.lib" -lrefu.dll C:\PROGRA~1\AMDAPP~1\lib\x86\OpenCL.lib W:\___NEW~1\GAUSSI~1\GAUSSI~2\refu.dll
p:/programy/programování/codeblocks_32bit/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lrefu.dll
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 1 second(s))
1 error(s), 0 warning(s) (0 minute(s), 1 second(s))
 

oBFusCATed:
What is this "C:\Program Files\AMD APP\lib\x86\OpenCL.lib"?

Why are you specifying full paths to the libraries?

It is better to just add libname.ext without the lib prefix and without the extension.
The path should be entered separately in the search path -> linker in your project.

Try to use relative paths as much as possible!

Jenna:
Please do not start a new topic for the same problem !

Especially if the second issue is cause dby the "solution" of the first one.

As you can see, I merged both topics.

wever:
ObFuscate:
I did not decided to install the path as AMD did.

I did not saved yesterdays project. Maybe the error disappeared, when I corrected it today. Im not sure. But new error here now, but this one is different.



--- Code: ---mingw32-g++.exe -Wall -fexceptions -g  -c W:\___NEW_PROJECTS\GaussianBlur\GaussianBlur\main.cpp -o obj\Debug\main.o
W:\___NEW_PROJECTS\GaussianBlur\GaussianBlur\main.cpp:2:19: fatal error: CL/cl.h: No such file or directory
compilation terminated.
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
--- End code ---

I try include:

--- Code: ---#include <CL/cl.h>
and the path in configuration is:
C:\PROGRA~1\AMDAPP~1\include
in Search directory - compiler
--- End code ---

jens:
thanks for correction

wever:
Right now I am having this error:

--- Code: ---mingw32-g++.exe -LC:\PROGRA~1\AMDAPP~1\lib\x86\ -o bin\Debug\Gaussian_with_OpenCL.exe obj\Debug\main.o  -lOpenCL  "C:\Program Files\AMD APP\lib\x86\OpenCL.lib" -lrefu.dll C:\PROGRA~1\AMDAPP~1\lib\x86\OpenCL.lib W:\___NEW~1\GAUSSI~1\GAUSSI~2\refu.dll
p:/programy/programování/codeblocks_32bit/mingw/bin/../lib/gcc/mingw32/4.7.1/../../../../mingw32/bin/ld.exe: cannot find -lrefu.dll
collect2.exe: error: ld returned 1 exit status
Process terminated with status 1 (0 minute(s), 0 second(s))
1 error(s), 0 warning(s) (0 minute(s), 0 second(s))
--- End code ---

But I cannot find out why it says that it cannot find the path with refu.dll because when I copy the path: W:\___NEW~1\GAUSSI~1\GAUSSI~2\refu.dll and try to open, so Windows can find the file... What am I doing wrong?

Edit:
I see the path "Program Files":
-lOpenCL  "C:\Program Files\AMD APP\lib\x86\OpenCL.lib"
but why it is there? It should not to be like that when I configureted the project to 8.3 file names


--- Quote from: oBFusCATed on August 29, 2014, 12:28:23 am ---What is this "C:\Program Files\AMD APP\lib\x86\OpenCL.lib"?

Why are you specifying full paths to the libraries?


--- End quote ---

I don't. I have specified:
"C:\PROGRA~1\AMDAPP~1\lib\x86\OpenCL.lib"
so why compiler gets different file name?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version