gcc 与 arm-none-linux-gnueabi-gcc区别
执行 gcc jpgtest.c -o jpegtest -ljpeg
可以生成可执行文件jpegtest
但是,当我使用交叉编译时 arm-none-linux-gnueabi-gcc jpgtest.c -o jpegtest -ljpeg
却提示如下错误
jpgtest.c:17:21: error: jpeglib.h: No such file or directory
jpgtest.c:19:20: error: jerror.h: No such file or directory
jpgtest.c: In function 'main':
jpgtest.c:58: error: storage size of 'cinfo' isn't known
jpgtest.c:60: error: storage size of 'jerr' isn't known
jpgtest.c:177: error: 'TRUE' undeclared (first use in this function)
jpgtest.c:177: error: (Each undeclared identifier is reported only once
jpgtest.c:177: error: for each function it appears in.)
为什么交叉编译不可以加后面的库呢,请各位大大指教,我应该如何解决