Issue with crating OUT port in C++

Hello All, I did create simple project based on “https://www.youtube.com/watch?v=IUGSZzuzm-c&t;=255s”. I did create one int16 variable in eclipse C++ as well as library created successfully in eclipse. In PLCnext I cannot port the variable ,that has created in eclipse, to PLCnext variable. following pictures shows all process I have done. Moreover, PLCnext version is 2019.3, PLCncli is 2019.0 and sdk is 2019.3. Also project in PLCnext is empty project 2019.3. Cpp.png plcnext02.pngplcnext01.png plcnext.png

Hello, The port in the C++ program must be preceded by comments in the special format described in the template. So in your case, the port variable must be declared as follows:

//#port
//#attributes(Output)
int16 FirstVars = 0;

Good Martin, Thank you for help and now is working.