Adding OpenCL to a JUCE project for easy GPU access - Working Method Included

One step closer:

Had to put the OpenCL.lib file in the same folder as the sln generated by Projucer/Visual Studio and add in Projucer OpenCL.lib under External Library to Link

Supposedly can use relative paths in extra linker flags so you don’t have to add it to the build folder. But I couldn’t make anything work in Extra Linker Flags.

See:

Now I just have one error remaining which I don’t know how to fix or why its happening.

error LNK2019: unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl get_opencl_c_code(void)" (?get_opencl_c_code@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) referenced in function "public: __cdecl AudioPlugInAudioProcessor::AudioPlugInAudioProcessor(void)" (??0AudioPlugInAudioProcessor@@QEAA@XZ)

This is happening where I run the line:

	Device device(select_device_with_most_flops()); // compile OpenCL C code for the fastest available device

Which is my OpenGL wrapper test code line. Not sure what to do next.