[ 
https://issues.apache.org/jira/browse/MYNEWT-563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wanda Chiu updated MYNEWT-563:
------------------------------
    Description: 
In the "Enabling Newt Manager in any app" Tutorial, we show the user how  to 
add all Newt Manager Commands to the bletiny app. We get two compilation errors 
when compiling the app to test against the documentation:
1) Adding <mgmt/mgmt.h> to bletiny/src/main.c results in duplicate 
   #define STR(x) error, as it is defined in both <mgmt/mgmt.h> and main.c.  
Need to add a #ifndef around the #define in main.c

2) Adding test/runtest package gets error when compiling runtest_nmgr.c because 
it cannot find "testutil/testutil.h". Need to add test/testutil package to 
test/runtest pkg.yml


  was:
In the "Enabling Newt Manager in any app" Tutorial, we show the user how  to 
add all Newt Manager Commands to the bletiny app. We get two compilation errors 
when compiling the app to test against the documentation:
1) Adding <mgmt/mgmt.h> to bletiny/src/main.c results in duplicate 
   #define STR(x) error, as it is defined in both <mgmt/mgmt.h> and main.c. 
main.c does not use STR so can be removed from main.c

2) Adding test/runtest package gets error when compiling runtest_nmgr.c because 
it cannot find "testutil/testutil.h". Need to add test/testutil package to 
test/runtest pkg.yml



> Compilation Error when Enabling all Newt Manager commands for bletiny app
> -------------------------------------------------------------------------
>
>                 Key: MYNEWT-563
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-563
>             Project: Mynewt
>          Issue Type: Bug
>    Affects Versions: v1_0_0_beta1
>            Reporter: Wanda Chiu
>            Assignee: Wanda Chiu
>            Priority: Minor
>             Fix For: v1_0_0_rel
>
>
> In the "Enabling Newt Manager in any app" Tutorial, we show the user how  to 
> add all Newt Manager Commands to the bletiny app. We get two compilation 
> errors when compiling the app to test against the documentation:
> 1) Adding <mgmt/mgmt.h> to bletiny/src/main.c results in duplicate 
>    #define STR(x) error, as it is defined in both <mgmt/mgmt.h> and main.c.  
> Need to add a #ifndef around the #define in main.c
> 2) Adding test/runtest package gets error when compiling runtest_nmgr.c 
> because it cannot find "testutil/testutil.h". Need to add test/testutil 
> package to test/runtest pkg.yml



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to