Deepstream 1.0 NVGSTDS_LINK_ELEMENT

im getting error on include files . while using
NVGSTDS_LINK_ELEMENT(data.streammux, data.queue1);

…/…/apps-common/includes/deepstream_common.h:46:41: error: cannot convert ‘GstPad* {aka _GstPad*}’ to ‘GstElement* {aka _GstElement*}’ for argument ‘1’ to ‘gboolean gst_element_link(GstElement*, GstElement*)’
if (!gst_element_link (elem1,elem2)) { \

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

Deepstream 1.0
±----------------------------------------------------------------------------+
| NVIDIA-SMI 460.32.03 Driver Version: 460.32.03 CUDA Version: 11.2 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 Tesla T4 On | 00000000:00:1E.0 Off | 0 |
| N/A 27C P8 10W / 70W | 0MiB / 15109MiB | 0% Default |
| | | N/A |
±------------------------------±---------------------±---------------------+

Also below error :

…/…/apps-common/includes/deepstream_common.h:55:14: error: label ‘done’ used but not defined
goto done; \

i used “gst_element_link(data.streammux, data.queue1);”

its working now thank you .