Results 1 to 5 of 5

Thread: Problem with first code on visual studio 2008

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    9

    Problem with first code on visual studio 2008

    Hi all!
    I have installed ATI Stream SDK 2.1 with Visual Studio 2008 Professional
    and I try a simple code for start:

    #include <stdio.h>
    #include <stdlib.h>
    #include <cl.h>
    int main()
    {

    cl_platform_id platform;
    clGetPlatformIDs( 1, &platform, NULL );
    }

    VS2008 makes those errors:

    Errore 1 error LNK2019: riferimento al simbolo esterno _clGetPlatformIDs@12 non risolto nella funzione _main aes_ctr.obj Aes_ctr
    Errore 2 fatal error LNK1120: 1 esterni non risolti C:\Users\Davide\Documents\ATI Stream\samples\opencl\Release\Aes_ctr.exe Aes_ctr

    Can anyone suggest me any solution?

  2. #2
    Senior Member
    Join Date
    Nov 2009
    Posts
    118

    Re: Problem with first code on visual studio 2008

    Did you add OpenCL to your linker input?

  3. #3

    Re: Problem with first code on visual studio 2008

    You have to add the lib file to the linker input files. It should be on the folders of the OpenCL SDK.

    Like this http://img197.imageshack.us/gal.php?g=link1i.png

  4. #4
    Junior Member
    Join Date
    Apr 2010
    Posts
    9

    Re: Problem with first code on visual studio 2008

    Thx for solution!

  5. #5

    Re: Problem with first code on visual studio 2008

    No problem, glad to help =)

Similar Threads

  1. openCL using visual studio 2008..
    By phoebe0105 in forum OpenCL
    Replies: 0
    Last Post: 04-19-2010, 09:50 AM
  2. Replies: 2
    Last Post: 03-19-2010, 09:55 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
  •