rtPrintf compile error

Strange behavior of rtPrintf while compilation

  1. Error
int q = primIdx;
    rtPrintf("i=%d p0 %f %f %f, p1 %f %f %f, p2 %f %f %f, n %f %f %f\n", q,
    //rtPrintf("p0 %f %f %f, p1 %f %f %f, p2 %f %f %f, n %f %f %f\n",
      p0.x, p0.y, p0.z,
      p1.x, p1.y, p1.z,
      p2.x, p2.y, p2.z,
      n.x, n.y, n.z);
>CustomBuild:
1>  Building NVCC ptx file lib/ptx/iso_trg_generated_triangle_mesh_small.cu.ptx
1>D:/CUDA_OPTIX/OptiX SDK 3.5.1/iso_trg/iso_trg/triangle_mesh_small.cu(56): error : no instance of overloaded function "rtPrintf" matches the argument list
1>              argument types are: (const char [56], int, float, float, float, float, float, float, float, float, float, float, float, float)
...
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
  1. Good
int q = primIdx;
    //rtPrintf("i=%d p0 %f %f %f, p1 %f %f %f, p2 %f %f %f, n %f %f %f\n", q,
    rtPrintf("p0 %f %f %f, p1 %f %f %f, p2 %f %f %f, n %f %f %f\n",
      p0.x, p0.y, p0.z,
      p1.x, p1.y, p1.z,
      p2.x, p2.y, p2.z,
      n.x, n.y, n.z);
...
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
  1. Error
rtPrintf("i=%d %d p0 %f %f %f, p1 %f %f %f, p2 %f %f %f, n %f %f %f\n", q, q,
    //rtPrintf("p0 %f %f %f, p1 %f %f %f, p2 %f %f %f, n %f %f %f\n",
      p0.x, p0.y, p0.z,
      p1.x, p1.y, p1.z,
      p2.x, p2.y, p2.z,
      n.x, n.y, n.z);
  1. Good
int q = primIdx;
    rtPrintf("i=%d %d p1 %f %f %f, p2 %f %f %f, n %f %f %f \n", q, q,
    //rtPrintf("p0 %f %f %f, p1 %f %f %f, p2 %f %f %f, n %f %f %f\n",
      //p0.x, p0.y, p0.z,
      p1.x, p1.y, p1.z,
      p2.x, p2.y, p2.z,
      n.x, n.y, n.z);
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
  1. Good
int q = primIdx;
    rtPrintf("i=%d ", q);
    //rtPrintf("i=%d %d p1 %f %f %f, p2 %f %f %f, n %f %f %f \n", q, q,
    rtPrintf("p0 %f %f %f, p1 %f %f %f, p2 %f %f %f, n %f %f %f\n",
      p0.x, p0.y, p0.z,
      p1.x, p1.y, p1.z,
      p2.x, p2.y, p2.z,
      n.x, n.y, n.z);
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

Win 8.1, x64, VS2010, OptiX 3.5.1, CUDA 5.5, GeForce GTX 650 ti.

“Find in Files” is your friend. Please have a look into optix_device.h.
There is no rtPrintf() overload implemented which takes more than 12 parameters.
Either split your rtPrintf() calls or try to add the one you need.

Thank you for the advice!
I will parse the h-files before questions.

sudak