Generate C++ code and then use it within CL