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.
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
Post a Comment