Getting error on c++ make file

/usr/lib/gcc/x86_64-linux-gnu/7/…/…/…/x86_64-linux-gnu/Scrt1.o: In function _start': (.text+0x20): undefined reference to main’
collect2: error: ld returned 1 exit status
Makefile:146: recipe for target ‘APP’ failed
make: *** [APP] Error 1

hardware and software :
*CUDA 11.2 *
deepstream 5.0
Graphic card tesla t4

Are you using deepstream 1.0?

Could you use latest DS6.0?

deepstream 5.1 im using , have edited the error message could you re-check?

Below is the CMAKE FILE :

CUDA_VER?=

ifeq ($(CUDA_VER),)

$(error “CUDA_VER is not set”)

endif

APP:= Application-1

CC = g++

TARGET_DEVICE = $(shell gcc -dumpmachine | cut -f1 -d -)

NVDS_VERSION:=1.0

NVDS_VERSION:=5.1

LIB_INSTALL_DIR?=/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/lib/

APP_INSTALL_DIR?=/opt/nvidia/deepstream/deepstream-$(NVDS_VERSION)/bin/

ifeq ($(TARGET_DEVICE),aarch64)

CFLAGS:= -DPLATFORM_TEGRA

endif

SRCS:= $(wildcard *.cpp)

INCS:= $(wildcard *.h)

PKGS:= gstreamer-1.0

OBJS:= $(SRCS:.cpp=.o)

CFLAGS+= -I…/…/…/includes \

    -I /usr/local/cuda-$(CUDA_VER)/include

CFLAGS+= $(shell pkg-config --cflags $(PKGS))

LIBS:= $(shell pkg-config --libs $(PKGS))

LIBS+= -L/usr/local/cuda-$(CUDA_VER)/lib64/ -lcudart \

   -lm -lcuda \

   -Wl,-rpath,$(LIB_INSTALL_DIR)

all: $(APP)

%.o: %.cpp $(INCS) Makefile

$(CC) -c -o $@ $(CFLAGS) $<

$(APP): $(OBJS) Makefile

$(CC) -o $(APP) $(OBJS) $(LIBS)

install: $(APP)

cp -rv $(APP) $(APP_INSTALL_DIR)

clean:

rm -rf $(OBJS) $(APP)

seems there is no main in your source code, it’s a basic compile problem, it’s should be not related to deepstream.