Did you add the input parameter float gain1=gain
after creating C++ template?
When modifying the input, output, or input parameters, it is necessary to recreate the C++ template. However, there is a project by @RDunn that aims to eliminate this step using an external program ( QCodeGen – A C-Block Component Code Generator For QSpice - QSPICE - Qorvo Tech Forum). If you follow Mike’s instructions, you should recreate the template whenever you make changes to the schematic DLL block.
@RDunn Does your Code Generator handle this situation?