Using static library
$arm-linux-gnueabihf-gcc ?O2 -o sample sample.c -I$NE10_INC_PATH -l:$NE1
0_LIB_PATH/libNE10.aUsing dynamic library
$arm-linux-gnueabihf-gcc ?O2 -o sample sample.c -I$NE10_INC_PATH -l:$NE10 _LIB_PATH/libNE10.so -lm
The puzzled thing is that when I use static library, it generates undefined reference error. If I build the application with:
$arm-linux-gnueabihf-gcc ?O2 -o sample sample.c -I$NE10_INC_PATH -l:$NE1
0_LIB_PATH/libNE10.a -lmThe application works on the ARM target, even without PATH variables includ ing libNE10.a library.
I wonder the author made a mistake of -lm with the dynamic library. I am ne w to Linux. I would like to know the meaning of -lm. Could you help me?
Thanks,