[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] libiio
Peter Slegg wrote:
#include <usr\lib\libiio.a>
I know it had compiled back in 2007, I have the bin to prove it
This is a pure nonsense, it had been able to compile by chance.
To use a library, you must:
- #include the required .h files
- add the .a files at the end of the linker command line, or -liio as a
better alternative to /usr/lib/libiio.a
Without that line I have some odd error:
<SNIP>
photorec.c: In function `data_check_size':
photorec.c:1151: warning: unused parameter `buffer'
photorec.c:1151: warning: unused parameter `buffer_size'
photorec.c: In function `file_finish':
photorec.c:1244: warning: cast increases required alignment of target type
make[2]: *** [photorec.o] Error 1
make[2]: Leaving directory `/i/usr/src/testdisk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/i/usr/src/testdisk'
make: *** [all] Error 2
These warnings are harmless.
- Either you have some serious errors before these warnings
- Either there is -Werror in the makefile to fail on warnings
The contents of <SNIP> would be useful to help you.
--
Vincent Rivière