I compile cJSOn library with openwrt SDK now i wrote a c program which uses the cjson library. can someone tell me how to use this build library to compile c code.
I already to tried to link it with -I/path/to/<target>/usr/include and -L/path/to/<target>/usr/lib. here is my command
Hello, Thank you for your answer. I am able to compile the c program now. But when I transfer that executable file to destination system. It is not able to run it. It shows error.
Most likely not properly cross-compiled (it's easier to package up your program, so it does fully use the toolchain, rather than assembling the cross-compiler call yourself), as that looks very much like a libc mismatch (program built against glibc, OpenWrt requires musl).