These are chat archives for marvell-iot/aws_starter_sdk

16th
Feb 2016
Sasidhar Movva
@movvas
Feb 16 2016 16:28
@anujdeshpande, @rohanghige , I tested with clean build but still cant get rid of this error..
In file included from sample_apps/aws_starter_demo/src/main.c:27:0:
wmsdk/src/incl/sdk/wmtime.h:27:18: error: conflicting types for 'time_t'
typedef uint32_t time_t;
^
In file included from /usr/local/Cellar/gcc-arm-none-eabi-49/20150609/arm-none-eabi/include/stdio.h:48:0,
from wmsdk/src/incl/platform/os/freertos/wm_os.h:44,
from sample_apps/aws_starter_demo/src/main.c:25:
/usr/local/Cellar/gcc-arm-none-eabi-49/20150609/arm-none-eabi/include/sys/types.h:123:18: note: previous declaration of 'time_t' was here
typedef TIME_T time_t;
^
Sasidhar Movva
@movvas
Feb 16 2016 17:19
@anujdeshpande, @rohanghige, wm_os.h is including stdio.h
and that is where the redefinition of time_t is coming from
not sure why you don't see the error .. here the two different types with the same name are getting mixed up because of including stdio.h.. if you change that include to wmstdio.h the error is resolved..
Sasidhar Movva
@movvas
Feb 16 2016 17:28
or changing the order of includes seems to help as well.. wm_os should be included after wmtime.h
Ivo Clarysse
@IvoBCD
Feb 16 2016 17:37
@movvas I think wm_os.h intends to include wmsdk/src/incl/libc/stdio.h, but ends up including /usr/local/Cellar/gcc-arm-none-eabi-49/20150609/arm-none-eabi/include/stdio.h
Sasidhar Movva
@movvas
Feb 16 2016 17:44
@IvoBCD, thanks for pointing it out. did not realize that there was an stdio.h in both places.. for now changing the order of include files helped me get past the issue without changing wm_os.h and allowing me to make progress.
Sasidhar Movva
@movvas
Feb 16 2016 17:57
@kedars, is there a sample project that you can share for the dev kit that does audio playback/recording? open to any codec