project add files

Jython googcheng at gmail.com
Wed Apr 10 10:07:40 UTC 2019


HI, ALL
  my file tree log is here
https://gist.github.com/goog/36cab05f82aba548a432d616fc3c2cbe


build log
//
../../../../../../../rtems-4.11.3/c/src/../../testsuites/samples/hello/init.c:301:5:
warning: nested extern declaration of 'rtems_stack_checker_report_usage'
[-Wnested-externs]
../../../../../../../rtems-4.11.3/c/src/../../testsuites/samples/hello/init.c:
At top level:
../../../../../../../rtems-4.11.3/c/src/../../testsuites/samples/hello/init.c:80:14:
warning: 'i2c_read' declared 'static' but never defined [-Wunused-function]
 static uint8 i2c_read(int fd, uint8 reg, uint8 *val);
              ^
../../../../../../../rtems-4.11.3/c/src/../../testsuites/samples/hello/init.c:81:14:
warning: 'printarray' declared 'static' but never defined
[-Wunused-function]
 static uint8 printarray(uint8 Array[], uint8 Num);
              ^
mv -f .deps/init.Tpo .deps/init.Po
arm-rtems4.11-gcc -B../../../../../stm32f4/lib/ -specs bsp_specs -qrtems
-march=armv7-m -mthumb -O2 -g -Wall -Wmissing-prototypes
-Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs
-march=armv7-m -mthumb   -o hello.exe init.o
init.o: In function `Init':
/home/cheng/stm32f4/arm-rtems4.11/c/stm32f4/testsuites/samples/hello/../../../../../../../rtems-4.11.3/c/src/../../testsuites/samples/hello/init.c:271:
undefined reference to `OLED_Init'
collect2: error: ld returned 1 exit status
make[6]: *** [hello.exe] Error 1
make[6]: Leaving directory
`/home/cheng/stm32f4/arm-rtems4.11/c/stm32f4/testsuites/samples/hello'
make[5]: *** [all-local] Error 1
make[5]: Leaving directory
`/home/cheng/stm32f4/arm-rtems4.11/c/stm32f4/testsuites/samples'
make[4]: *** [all] Error 2
make[4]: Leaving directory
`/home/cheng/stm32f4/arm-rtems4.11/c/stm32f4/testsuites/samples'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/cheng/stm32f4/arm-rtems4.11/c/stm32f4/testsuites'
make[2]: *** [all-recursive] Error 1

the 'OLED_Init' function in oled.c and also declare in oled.h as extern
void OLED_Init(void);
dont know why it happened
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20190410/11be3871/attachment.html>


More information about the users mailing list