sdk v.2.2.0 - zephyr.h not found

Hi,

I am currently want to re-compile my code that actually works in previous version of sdk. But now, in this current version (v.2.2.0), I got error zephyr.h not found.

c:\nrf\samples\nrf9160\uart\src\main.c:11:10: fatal error: zephyr.h: No such file or directory
   11 | #include <zephyr.h>
      |          ^~~~~~~~~~
compilation terminated.

So maybe anyone has same experience? Thank you.

Parents
  • Hello, 

    From what version are you updating from? In zephyr\include\zephyr\zephyr.h, it states the following:

    /*
     * Copyright (c) 2015 Intel Corporation
     *
     * SPDX-License-Identifier: Apache-2.0
     */
    
    #ifndef ZEPHYR_INCLUDE_ZEPHYR_H_
    #define ZEPHYR_INCLUDE_ZEPHYR_H_
    
    #include <zephyr/kernel.h>
    
    #ifndef CONFIG_LEGACY_INCLUDE_PATH
    #warning "<zephyr/zephyr.h> is deprecated, include <zephyr/kernel.h> instead"
    #endif
    
    #endif /* ZEPHYR_INCLUDE_ZEPHYR_H_ */
    

    Please replace with 

    #include <zephyr/kernel.h>
    Kind regards,
    Øyvind
Reply
  • Hello, 

    From what version are you updating from? In zephyr\include\zephyr\zephyr.h, it states the following:

    /*
     * Copyright (c) 2015 Intel Corporation
     *
     * SPDX-License-Identifier: Apache-2.0
     */
    
    #ifndef ZEPHYR_INCLUDE_ZEPHYR_H_
    #define ZEPHYR_INCLUDE_ZEPHYR_H_
    
    #include <zephyr/kernel.h>
    
    #ifndef CONFIG_LEGACY_INCLUDE_PATH
    #warning "<zephyr/zephyr.h> is deprecated, include <zephyr/kernel.h> instead"
    #endif
    
    #endif /* ZEPHYR_INCLUDE_ZEPHYR_H_ */
    

    Please replace with 

    #include <zephyr/kernel.h>
    Kind regards,
    Øyvind
Children
Related