Forum Discussion
Altera_Forum
Honored Contributor
10 years agosay that you installed Visual Studio 2010 and windows SDK7.1, then pls help to follow the following steps which proved work:
1. Configure project to use the configuration AlteraOpenCL with the platform x64: Right click on the Project SimpleOpenCL in the Solution Explorer. Click on Properties. At the top of the Property Pages, click on Configuration Manager¡* From the dropdown menus, change the Configuration and platform 2. Click Close to close the Configuration Manager. 3.In the Property Pages, go to Configuration Properties -> General. Verify that the Platform Toolset has been set to Windows7.1SDK. This is what allows us to compile 64-bit executable. 4.In the Property Pages, go to C/C++ -> General. You should see that the Additional Include Directories should include a path to the Intel include files. The include directory allows our compile to be aware of the Altera OpenCL header files. 5. Now go to Linker->General. You should see Altera¡¯s 64-bit library path listed under Additional Library Directories. This points the linker to the library directory where Intel¡¯s libraries are located. 6. Go to Linker->Input. In the Additional Dependencies field, you should see opencl.lib. This is Altera¡¯s provided static library for compiling and running OpenCL kernels. 7. Click OK to close the Property Pages.