Eclipse CDT “Symbol NULL could not be resolved”

后端 未结 13 1815
北荒
北荒 2020-12-06 04:32

I just installed Eclipse CDT with MinGW. All the environment variables are set, includes, etc. Tried running a hello world and everyth

13条回答
  •  抹茶落季
    2020-12-06 04:57

    • reason is :

    NULL defined in stddef.h, but stddef.h is in xxx/include/linux not xxx/include

    -> even though you have added MingW's xxx/include, still can not found NULL

    • the solution is:

    add your MingW's include/linux path to your project

    • referer

    (1) example of my xscale crosscompiler's include/linux path is: /opt/crosscompile/xscale/gcc-4.6.0-glibc-2.9/arm-xscale-linux-gnueabi/sysroot/usr/include/linux

    added GNU C++ include linux path

    (2) my post:Ubuntu Eclipse: Symbol ‘NULL’ could not be resolved

提交回复
热议问题