I now have the header files included (I have taken them from my normal linux systems /usr/include since openwrt contain no header files, but I think the headers alone should be platform independent) and taken libcrypto.so.0.9.8 and libssl.so.0.9.8 from openwrt. Now when I try to compile I get a LOT of error output, things like "error: expected ')' before '*' token" and "error: expected declaration specifiers before ..." and similar things in every of the newly added header files thats used by the program I try to compile. I have no idea what that means but I assume there is still something wrong with the libraries. I hope anyone can give me some hint on this because time running out for me. Thank in advance Quoting Andrew Haley <aph@xxxxxxxxxx>: > Till Elsner wrote: > > Thanks for that tip, making sure that its compiling against the right > > include directory did the trick :) I just didn't know what to look for. > > But with that another problem appeared: How can I add header files for > > the mips platform that the cross compiler can use (here curses.h and > > openssl/* are needed)? Can I just copy them from the embedded device > > (router)? > > Yes. You should already have done that when building the cross-compiler. > > Andrew. > > > > Am 13.05.2008 um 06:58 schrieb Ian Lance Taylor: > > > >> Till Elsner <till.elsner@xxxxxxxxxxxxxxxxxx> writes: > >> > >>> Thanks for the explaination. I removed the toolchain and installed the > >>> pre-compiled one from http://debian.speedblue.org but the same error > >>> still exists. Anyone an idea what might be the problem or where to get > >>> a working cross compiler from? I'm trying to compile an application > >>> for OpenWRT. > >> > >> Is there an explicit -I /usr/include on the compilation command line? > >> > >> Something is apparently telling the compiler to read /usr/include. > >> You need to find that and change it. > >> > >> Ian > > > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.