AnsweredAssumed Answered

The file format of OpenCL.a is not recognized by gcc on ubuntu 11.10(64bit)

Question asked by joen on Feb 9, 2012
Latest reply on Feb 20, 2012 by dmitri.lebedinski

Hi, everybody!


I download the AMD-APP-SDK-v2.6-lnx64.tgz (93 MB) and have installed it on ubuntu 11.10(64bit).

Additionally, I also download the and extract the zip under the /opt/AMDAPP/


Then, I try to link the OpenCL.a to compile my opencl 1.2 program, but the gcc tell me

/opt/AMDAPP/lib/x86_64/libOpenCL.a: could not read symbols: File format not recognized


My gcc version:

gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)



gcc -std=c99 taskDispatch.c -L /opt/AMDAPP2/lib/x86_64 -lOpenCL -I /home/joen/OpenCL/include -I /opt/AMDAPP2/include -o taskDispatch.o



CPU: intel I7, Graphic card:AMD RADEON HD 6850, OS: Ubuntu 11.10


Please help me, thanks~