Getting error when compiling my c++ program

I am developing an OpenWRT package
this package compile a Program and compile a C++ program.
When I compile the package I got the following error:

cp -fpR -r /root/source/build_dir/target-mipsel_24kc_musl/bridge_test/bridge_test-3.8.0/bridge_firmware/files/* /root/source/build_dir/target-mipsel_24kc_musl/bridge_test/bridge_test-3.8.0/ipkg-mipsel_24kc/bridge_test/rootfs-overlay/
sed "s/firmware .*/firmware '3.8.0'/" /root/source/build_dir/target-mipsel_24kc_musl/bridge_test/bridge_test-3.8.0/bridge_firmware/files/etc/config/test > /root/source/build_dir/target-mipsel_24kc_musl/bridge_test/bridge_test-3.8.0/ipkg-mipsel_24kc/bridge_test/rootfs-overlay/etc/config/test
install -d -m0755 /root/source/build_dir/target-mipsel_24kc_musl/bridge_test/bridge_test-3.8.0/ipkg-mipsel_24kc/bridge_test/www
cp -fpR -r /root/source/build_dir/target-mipsel_24kc_musl/bridge_test/bridge_test-3.8.0/bridge_lua_restapi/wifi_settings/* /root/source/build_dir/target-mipsel_24kc_musl/bridge_test/bridge_test-3.8.0/ipkg-mipsel_24kc/bridge_test/www
find /root/source/build_dir/target-mipsel_24kc_musl/bridge_test/bridge_test-3.8.0/ipkg-mipsel_24kc/bridge_test -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
Package bridge_test is missing dependencies for the following libraries:
libc.so.6
libm.so.6
make[2]: *** [Makefile:108: /root/source/bin/packages/mipsel_24kc/base/bridge_test_3.8.0_mipsel_24kc.ipk] Error 1
make[2]: Leaving directory '/root/source/package/bridge_test'
time: package/bridge_test/compile#41.74#11.02#38.56
    ERROR: package/bridge_test failed to build.
make[1]: *** [package/Makefile:116: package/bridge_test/compile] Error 1
make[1]: Leaving directory '/root/source'
make: *** [/root/source/include/toplevel.mk:230: package/bridge_test/compile] Error 2

I added "+libc" and "+libm" in the DEPENDS but this is did not fix the issue

What I am missing ?

I found the cause of the issue.
I was using a Wong c++ compilation. I was using the computer compilator and not the OpenWRT SDK compilator
I had to provide the CXX value to my C++ makefile with this way:

$(MAKE) -C $(PKG_BUILD_DIR)/mycpp debug CC="$(TARGET_CC) -fhonour-copts -DOPENWRT" CXX="$(TARGET_CXX) -DOPENWRT"