c - ARM9 cross compilation error -


i'm beginner in programming embedded devices. while cross compiling cryptography algorithm (using openssl), generates error shown below. program doesn't have problem, since runs in host system (ubuntu 14). did come across problem ? tried of posted related questions on cross compilation didn't solve problem. thanks.

enter image description here

for headers issue:

locate headers , include using -i switch while compilation.

for linking ussue:

$ locate libcrypto.so 

you directory libcrypto resides. let's directory is: target_usr/lib/libcrypto.so

now use following command ensure correct linking:

$ arm-linux-gnueabi-gcc hashsha.c -ltarget_usr/lib -lcrypto 

also make sure add appropriate include flag , prefer use warning , optimization flags (-w -wall -o2 example)


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -