Error No Include Path In Which To Search For Sys/types.h
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up error: no include path in which to search for stdio.h up vote 3 down vote favorite I used to be able to compile C programs, but now I can't: $ cat helloworld.c #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Super User Questions Tags Users Badges Unanswered http://stackoverflow.com/questions/4236827/error-no-include-path-in-which-to-search-for-stdio-h Ask Question _ Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to http://superuser.com/questions/981780/how-does-gcc-find-the-following-header-file the top How does gcc find the following header file? up vote 7 down vote favorite I've included sys/ptrace.h into my C program. The output of /usr/lib/gcc/x86_64-linux-gnu/4.8/cc1 -v gives the following paths where gcc looks for header files #include "..." search starts here: #include <...> search starts here: /usr/lib/gcc/x86_64-linux-gnu/4.8/include /usr/local/include /usr/lib/gcc/x86_64-linux-gnu/4.8/include-fixed /usr/include End of search list. output of gcc -M for my program gives the following header file locations pt.o: pt.c /usr/include/stdc-predef.h /usr/include/stdio.h \ /usr/include/features.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \ /usr/include/x86_64-linux-gnu/bits/wordsize.h \ /usr/include/x86_64-linux-gnu/gnu/stubs.h \ /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \ /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h \ /usr/include/x86_64-linux-gnu/bits/types.h \ /usr/include/x86_64-linux-gnu/bits/typesizes.h /usr/include/libio.h \ /usr/include/_G_config.h /usr/include/wchar.h \ /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stdarg.h \ /usr/include/x86_64-linux-gnu/bits/stdio_lim.h \ /usr/include/x86_64-linux-gnu/bits/sys_errlist.h \ /usr/include/x86_64-linux-gnu/sys/ptrace.h Since /usr/include/x86_64-linux-gnu/ is not contained in the first output, how does gcc find sys/ptrace.h? EDIT: The output of echo '#include
encourage you to create a user account on nxp.com to use the new community forums and access NXP microcontroller content. We greatly appreciate your contributions and look forward to seeing you at our https://www.lpcware.com/content/forum/include-path-problem new web location. Include path problem Home » Forums » LPCXpresso » LPCXpresso Forum 5 replies [Last post] Mon, 2012-10-22 07:00 netsupra Offline Joined: 2012-10-15 Posts: 6 Hello, I have a problem while trying to compile the zlib and libpng for a LPC11C24 : whenever I try to build the project, the compiler saids : c:\nxp\lpcxpresso_4.2.3_292\lpcxpresso\tools\bin\../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi/include/sys/types.h:4:32: error: no include path in which to search for sys/types.h Have you error no got any idea of how to solve this ? Thank you, netsupra Average: 0 Your rating: None Top Comment viewing options Flat list - collapsedFlat list - expandedThreaded list - collapsedThreaded list - expanded Date - newest firstDate - oldest first 10 comments per page30 comments per page50 comments per page70 comments per page90 comments per page150 comments per page200 comments per page250 comments per page300 comments per error no include page Select your preferred way to display the comments and click "Save settings" to activate your changes. Mon, 2012-10-22 09:10 #1 IntStarFoo Offline Joined: 2012-01-24 Posts: 15 I'm not sure about the specifics of your situation, but here are a few ideas that might help you find the problem... Do you #include "sys/types.h" in your code? If so, you can select that line in your code and press F3 (or right click->Open Declaration). That should open the actual file up. From there, you should see the location of the file and make sure that it is in your include paths for that project (Make sure you have the project selected, click "Quick Settings" button on the toolbar then select "Include paths") Also, it could have something to do with using REDLIB vs NEWLIB. Look that up under your project defines (Make sure you have the project selected, click "Quick Settings" button on the toolbar then select "Defined Symbols"). You might have to read about differences between REDLIB and NEWLIB in other areas for help. Top Mon, 2012-10-22 21:47 #2 daniel.widyanto Offline Joined: 2010-05-26 Posts: 132 Usually sys/types.h is referring to host's environment (eg. in Linux, FreeBSD or Win32), and I don't think CodeRed GCC