I have a helloworld package and I can successfully build it with openwrt buildroot for ramips device. In Makefile I have one special include (ulibc) and one special dependency (DEPENDS:=+libc). Package builds and works on device. Now I need to include gSoap generated code in my helloworld package, but then I have link error:
undefined reference to `std::ios_base::Init::Init()'
What can I do in this case? The next step - adding openssl support and WS Security, could it work on OpenWRT device?
I solved my problem:
Changed compiler in Makefile of my package sources from $(CC) to $(CXX) + $(CFLAGS) to $(CXXFLAGS)
Included uClibc++.mk before package.mk
Add only one dependency: DEPENDS:=+uclibcxx
After this LNK error was fixed. Thanks to @amine.ahd!