Hi ,
I have a test_1.c file which includes
camkes.h which is automatically generated has following includes
#include
#include
#include
#include
#include
#include
and another file
test_2.c which includes "socket.h"
In CMakeLists.txt, where I compile my test_1.c and test_2.c looks like this
DeclareCAmkESComponent(test
INCLUDES
"../muslibc/include/sys"* // necessary for compilation as
test_2.c has "socket.h"*
SOURCES
"test_1.c"
"test_2.c"
C_FLAGS
-Wall -Werror
LIBS
seos_libs
)
However when I compile , I start getting these errors:
In file included from
../projects/util_libs/libplatsupport/include/platsupport/io.h:20:0,
from projects/test/include/camkes.h:20,
from ../projects/src/test_1.c:8:
../projects/musllibc/include/sys/errno.h:1:2: error: #warning redirecting
incorrect #include to [-Werror=cpp]
*#warning redirecting incorrect #include to *
^~~~~~~
In file included from ../projects/musllibc/include/sys/errno.h:2:0,
from
../projects/util_libs/libplatsupport/include/platsupport/io.h:20,
from projects/test/include/camkes.h:20,
from ../projects/src/test_1.c:8:
../projects/musllibc/include/sys/errno.h:1:2: error: #warning redirecting
incorrect #include to [-Werror=cpp]
#warning redirecting incorrect #include to
How could this be solved ?
thanks
--yk