C++ Link error: undefined reference to `adl_main'

I want to write my code in C++. When using c, I do not get any linker errors while using the adl libraries, but when using C++ I get the above linker error. I played around with the ARM ELF GCC C++ Linker settings, but do not seem to get it working. Can one call the adl libs from C++? What linker settings must be set to accomplish this?

Some people tried it before.

See:
[url]https://forum.sierrawireless.com/t/wip-library-and-c-fixed/3842/1]

Indeed:

viewtopic.php?f=7&t=3766&start=0#p16729

viewtopic.php?f=7&t=3766&start=15#p17091

Great, that got it working. Thanks.

Ok! great news.
It could be nice that you post a code example in Code sharing area: https://forum.sierrawireless.com/viewforum.php?f=122
to help new users