OpenCL* for CPU
Ask questions and share information on Intel® SDK for OpenCL™ Applications and OpenCL™ implementations for Intel® CPU.
Announcements
This forum covers OpenCL* for CPU only. OpenCL* for GPU questions can be asked in the GPU Compute Software forum. Intel® FPGA SDK for OpenCL™ questions can be ask in the FPGA Intel® High Level Design forum.
1719 Discussions

skipping incompatible OpenCL.lib when searching for -lOpenCL

adriana_w_
Beginner
489 Views

The path for my OpenCL libraries is:

/cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/6.3/lib/x86

Accordingly, the line in my Makefile is:

LIBS=-L/cygdrive/c/"Program Files (x86)"/Intel/"OpenCL SDK"/6.3/lib/x86

However, I get the following link error:

$ make Programs.v.4
c++ Programs.v.4.o functions.o -L/cygdrive/c/"Program Files (x86)"/Intel/"OpenCL SDK"/6.3/lib/x86 -lOpenCL -o Programs.v.4
/usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld: skipping incompatible /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/6.3/lib/x86/OpenCL.lib when searching for -lOpenCL

 

What am I doing wrong?

0 Kudos
1 Reply
SergeyKostrov
Valued Contributor II
489 Views
>>...LIBS=-L/cygdrive/c/"Program Files (x86)"/Intel/"OpenCL SDK"/6.3/lib/x86 You have too many "" ( three ) in the path and it should be "Program Files (x86)/Intel/OpenCL SDK/6.3/lib/x86"
0 Kudos
Reply