Topic: Cross-compilation of an olsr plugin in C/C++
I'm actually writing an olsr plugin in C and C++. He works well on a Backtrack laptop : compilation of olsr create one dynamic library per plugin and mine works, when I load it in olsr config file.
However, when i do the same thing with OpenWRT buildroot, i still get a dynamic library. But when i load it on my wireless router, i get a Segmentation Fault.
A ldd command on the dynamic library gets me good dependencies on the first case, but doesn't work for the second case : "not a dynamic executable".
I suspect the C++ code to fail my compilation of my dynamic library for openwrt. But I didn't find an olsr plugin wrote in C and C++.
So, my questions are :
- how to compile a dynamic library plugin for olsr ?
- or how to compile a C++ dynamic library for openWRT ?
If someone has examples, it would be great and very helpfull !
Thank you !