- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I meet a strange error, I try to use memset(), I see it can be used in 2073x, and when I use in Apps/test/test.c, it works well, but if I increase a folder, use it in Apps/test/mem/mem.c, it has a error: undefined reference to `memset', and I am certain that I both add "string.h", but one is ok, the other is error, so I want to know whether I do something in makefile like increase a path?
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Kevin,
1. Can you send us a screen shot of the build error?
2. Are you using SDK 2.2.1?
3. What does your make file look like now?
Thanks
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello JT
1.the error log is:
../../build/hello_sensor-BCM920736TAG_Q32-rom-ram-Wiced-release/test/test.o: In function `test':
/home/kevin/WICED/Document/WICED-Smart-SDK/Wiced-Smart/spar/../../Apps/hello_sensor/test/test.c:6: undefined reference to `memset'
make[1]: *** [../../build/hello_sensor-BCM920736TAG_Q32-rom-ram-Wiced-release/A_20736A1-hello_sensor-rom-ram-spar.elf] Error 1
make: *** [hello_sensor-BCM920736TAG_Q32] Error 2
2. I use SDK 2.2.1 linux
3. the makefile is:
APP_SRC = hello_sensor.c test/test.c
INCS += $(DIR)/test
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
and in test.c, I only use #include "string.h"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Kevin,
Have you tried:
#include <string.h> instead of #include "string.h"
Let me know if this works\
Thanks
JT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks.
I try to use <string.h>, but the error still exist.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you try this?
#include "spar_utils.h"