Compilation issues: Platform : Windows 7 64 bit Compiler : MVSC

Hi,
I am trying to build a Open-Cl example code through MVSC compiler through command line.

Following is the command line :

cl /Feexample.exe -I"C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\OpenCl"\common\inc example.c /link /LIBPATH:“C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\OpenCl”\common\lib\x64 OpenCl.lib

Compilation Issues :

example.c
Microsoft (R) Incremental Linker Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

/out:example.exe
“/LIBPATH:C:\ProgramData\NVIDIA Corporation\NVIDIA GPU Computing SDK\OpenCl\common\lib\x64”
OpenCl.lib
example.obj
example.obj : error LNK2019: unresolved external symbol _clReleaseMemObject@4 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clReleaseContext@4 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clReleaseCommandQueue@4 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clReleaseProgram@4 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clReleaseKernel@4 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clEnqueueReadBuffer@36 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clEnqueueNDRangeKernel@36 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clSetKernelArg@16 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clCreateKernel@12 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clBuildProgram@24 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clCreateProgramWithSource@20 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clCreateBuffer@24 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clCreateCommandQueue@20 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clGetContextInfo@20 referenced in function _main
example.obj : error LNK2019: unresolved external symbol _clCreateContextFromType@24 referenced in function _main
example.exe : fatal error LNK1120: 15 unresolved externals

Thanks for your help.

Thanks
Gudge

Hi,
Is it necessary to install NVIDIA Display drivers for compiling (note not running, just compiling) OpenCL programs.
Platform : Windows
OS : Windows 7 - 64 bit.

Thanks
Gudge.

Here is my compiling command options from my project property settings, hope these helps.(From a Intel OCL SDK setup though.)
(MSVC++ 2010 Express with latest Windows SDK 7.1 installed.)

C/C++ options:
/I"C:\Intel\OpenCL SDK\1.1\include" /I"C:\Users\Public\Documents\Intel\OpenCL SDK\1.1\samples\common" /Zi /nologo /W3 /WX- /Od /D “WIN32” /D “_DEBUG” /D “_CONSOLE” /D “_UNICODE” /D “UNICODE” /Gm /EHsc /MTd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Fp"x64\Debug\test2.pch" /Fa"x64\Debug" /Fo"x64\Debug" /Fd"x64\Debug\vcWindows7.1SDK.pdb" /Gd /errorReport:queue

Linker options:
/OUT:“C:\Projects\test2\x64\Debug\test2.exe” /INCREMENTAL /NOLOGO /LIBPATH:“C:\Program Files (x86)\Intel\OpenCL SDK\1.1\lib\x64” “OpenCL.lib” “kernel32.lib” “user32.lib” “gdi32.lib” “winspool.lib” “comdlg32.lib” “advapi32.lib” “shell32.lib” “ole32.lib” “oleaut32.lib” “uuid.lib” “odbc32.lib” “odbccp32.lib” /MANIFEST /ManifestFile:“x64\Debug\test2.exe.intermediate.manifest” /ALLOWISOLATION /MANIFESTUAC:“level=‘asInvoker’ uiAccess=‘false’” /DEBUG /PDB:“C:\Users\reny\Documents\Visual Studio 2010\Projects\test2\x64\Debug\test2.pdb” /SUBSYSTEM:CONSOLE /PGD:“C:\Projects\test2\x64\Debug\test2.pgd” /TLBID:1 /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ERRORREPORT:QUEUE

I’m kinda sad that spend all the effort to register a dev account and see a old/out dated ocl driver with no final release date in sight.
I’m about to purchase new machine so I guess it might not equip a Nvidia card.
At the meantime I just dev with Intel’s 1.1 SDK.