Results 1 to 2 of 2

Thread: Compile OpenCL SDK 1.5 Samples in VC 2010

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    4

    Compile OpenCL SDK 1.5 Samples in VC 2010

    Hi guys

    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

    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_i d@@@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_sp ace\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

  2. #2
    Junior Member
    Join Date
    Dec 2011
    Posts
    4

    Re: Compile OpenCL SDK 1.5 Samples in VC 2010

    OK, http://www.khronos.org/message_board...hp?f=28&t=4044
    ...a .cl compiler was missing to my setup

    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 ?

Similar Threads

  1. OpenCL code samples
    By nadav in forum OpenCL
    Replies: 3
    Last Post: 06-02-2009, 07:30 AM
  2. a compile error message from PowerVR SDK
    By wycwang in forum OpenVG and VGU
    Replies: 0
    Last Post: 12-18-2007, 06:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •