Menu

#11 Unresolved inclusion: <stdio.h>

closed
nobody
None
5
2014-12-24
2011-11-18
Sonald
No

Hi,
I install the GNU ARM Eclipse Plug-in on my helios eclipse. When I create a new c project choosing the arm-linux-gcc option and add the standard lib: stdio.h, the error parser give me a warning:Unresolved inclusion: <stdio.h>.
I check the MinGw by the same test project, it works well, so where is the problem?

Discussion

  • Sonald

    Sonald - 2011-11-18
     
  • Sonald

    Sonald - 2011-11-18
     
  • Liviu Ionescu (ilg)

    it looks like the toolchain is not in the path. please be aware that the path setting for the graphical environment is different that the regular shell path setting.

    I do not know the details for your platform, but on my Mac OS X I have multiple toolchains, even multiple versions of the same toolchain, installed in different folders, and I start the same Eclipse with different scripts to adjust the environment to point to the desired toolchain.

    Hope this helps,

    Liviu

     
  • Sonald

    Sonald - 2011-11-21

    Well,my OS is WIN7.
    I have set the environment variables which point my compiler's path. With a simple HelloWorld test source, the compiler works well.
    So, the problem seems not the path. Would it be the Lib path problem or plugin make something wrong?

     
  • Liviu Ionescu (ilg)

    Go to project properties, C/C++ General -> Paths and Symbols and for Language GNU C you should see the compiler default include folders.

    If not, you might have a path problem.

    Liviu

     
  • Sonald

    Sonald - 2011-11-21

    I got it!
    I have not set the tool chain include path.

    Thanks for helps

     
  • Liviu Ionescu (ilg)

    • status: open --> closed