Forum Discussion
Altera_Forum
Honored Contributor
10 years agoAltera OpenCL SDK with Visual Studio 2015
Hi, Is there anyone tried to setup the development environment with VS2015 and successfully build the Host program? The VS2010 is used in the Altera get started guide for the env setup. I ...
Altera_Forum
Honored Contributor
8 years agoI have had success compiling the vector_add test code with Visual Studio v14.0 (aka 2015)
1) change Project vector_add properties Additional Depenancies "OpenCL.lib;legacy_stdio_definitions.lib;%(Additio nalDependencies)" 2) change the main.cpp program, at top of file after includes FILE _iob[] = { *stdin, *stdout, *stderr }; extern "C" FILE * __cdecl __iob_func(void) { return _iob; } extern "C" void __imp__set_output_format(void) {}; This may break other things, but the vector_add test works with these changes. (refs https://stackoverflow.com/questions/31242820 , https://stackoverflow.com/questions/30412951 )