problem using pgcpp to create a dll

Hi am new to PGI and am trying to create a dll, I can successfully create a dll using pgcc, but passing the same code to pgcpp causes an error. Namely, a undefined reference to _pgimain. Could someone tell me what I am doing wrong.

Hi VT_us,

Unfortunately, we only support DLL creation using C and Fortran, not C++.