Hi, I statted to use code::blocks IDE but I cannot find out what I do wrong
that compiler cannot find a library. System Windows XP, CODE::BLOCKS 13.12
installed gcc (tdm-1) 4.7.1 as part of the program. I use
AMD Stream library for OpenCL, which
automatically installs library to directory "C:\Program Files\AMD APP". Adding linking and searching folders in project settings. I orginally tried adding quotes around the paths or around segments having space and long names but this failed obviously because the compiler see filenames in 8.3 file format. So I adopted the paths so:
C:\PROGRA~1\AMDAPP~1\lib\x86\OpenCL.lib
W:\___NEW~1\GAUSSI~1\GAUSSI~2\refu.dll
OpenCL Compiler in
C:\PROGRA~1\AMDAPP~1\include
Linker in
C:\PROGRA~1\AMDAPP~1\lib\x86\
Now I got the errors:
1 2 3 4 5
|
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))
|
And I cannot find out why there are the long names in
-lOpenCL "C:\Program Files\AMD APP\lib\x86\OpenCL.lib"
instead of 8.3 format.
Any help appreciated