Compile error on bebop drone

Product: [Bebop/Bebop2]
Product version: []
SDK version: []
Use of libARController: [YES] (Only for ARSDK)
SDK platform: [Unix]
Reproductible with the official app: [Not tried]

I have tried to record video with unix ubuntu
but the code

deviceController->aRDrone3->sendMediaRecordVideoV2(deviceController->aRDrone3, (eARCOMMANDS_ARDRONE3_MEDIARECORD_VIDEOV2_RECORD)record);

had compile error. It says ‘record’ is undeclared. How can I fix it?