Compile OpenCL SDK 1.5 Samples in VC 2010

Hi guys :smiley:

I have some trouble to compile Samples code in VC2010
i can’t look at VC2008 projects setup of the SDK, so i tryed
to do linking by my own…

I succeed to compile the DotProduct sample but other sample code using .cl file,
like Bitonic it doesn’t load BitonicSort.cl file :shock:

Errors:

1>------ Build started: Project: BitonicSort, Configuration: Debug Win32 ------
1>main.obj : error LNK2019: unresolved external symbol “void __cdecl BuildFailLog(struct _cl_program *,struct _cl_device_id *)” (?BuildFailLog@@YAXPAU_cl_program@@PAU_cl_device_id@@@Z) referenced in function “int __cdecl Setup_OpenCL(char const *,unsigned int *)” (?Setup_OpenCL@@YAHPBDPAI@Z)
1>main.obj : error LNK2019: unresolved external symbol “char * __cdecl ReadSources(char const *)” (?ReadSources@@YAPADPBD@Z) referenced in function “int __cdecl Setup_OpenCL(char const *,unsigned int *)” (?Setup_OpenCL@@YAHPBDPAI@Z)
1>main.obj : error LNK2019: unresolved external symbol “struct _cl_platform_id * __cdecl GetIntelOCLPlatform(void)” (?GetIntelOCLPlatform@@YAPAU_cl_platform_id@@XZ) referenced in function “int __cdecl Setup_OpenCL(char const *,unsigned int *)” (?Setup_OpenCL@@YAHPBDPAI@Z)
1>C:\Users\user\Documents\Apps\C++\WORKS\OpenCL_space\BitonicSort\Debug\BitonicSort.exe : fatal error LNK1120: 3 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

My Configuration Properties:

Additional Include Directories:
C:\Program Files %28x86%29\Intel\OpenCL SDK\1.5\include
C:\Users\user\Documents\Apps\C++\SDK\OpenCL SDK\1.5\samples\common
C:\Users\user\Documents\Apps\C++\SDK\OpenCL SDK\1.5\samples\common\DXUT

Additional Library Directories:
C:\Program Files %28x86%29\Intel\OpenCL SDK\1.5\lib\x86

Additional Dependencies:
opencl.lib

Could you tell what is missing,
or where to find some VC2010 projects ?

thank’s

OK, http://www.khronos.org/message_boards/viewtopic.php?f=28&t=4044
…a .cl compiler was missing to my setup :slight_smile:

I understood that VC2010 Professional is necessary to operate the AMD APP SDK
But is there any trick (add extensions,libs…) to make it work with the free VC2010 Express ?