LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   GCC Ain't Searchn' Default Include Directories! (https://www.linuxquestions.org/questions/linux-software-2/gcc-aint-searchn-default-include-directories-940663/)

Zssfssz 04-19-2012 10:04 AM

GCC Ain't Searchn' Default Include Directories!
 
Im using make to compile something... (gcc 4.6.3)
When I type 'make' it all goes ok until it gets to a point where:
bid_decimal_globals.c can't find fenv.h!
I know very well that fenv.h and features.h are in /usr/include (along with stdio.h). I really don't want to have to go through all of the .h's needed by libgcc and hard-code the paths.
Is there a way to get it to see that include directory?

The most frustrating part of this is that I built this fine a few weeks ago...

Valery Reznic 04-20-2012 12:02 AM

Quote:

Originally Posted by Zssfssz (Post 4657402)
Im using make to compile something... (gcc 4.6.3)
When I type 'make' it all goes ok until it gets to a point where:
bid_decimal_globals.c can't find fenv.h!
I know very well that fenv.h and features.h are in /usr/include (along with stdio.h). I really don't want to have to go through all of the .h's needed by libgcc and hard-code the paths.
Is there a way to get it to see that include directory?

The most frustrating part of this is that I built this fine a few weeks ago...

Could you provide exact command used to compile bid_decimal_globals.c?

Also how fenv,h is included in bid_decimal_globals.c, with "" or with <>?

John VV 04-20-2012 12:33 AM

and to add becides the above

did you add "fenv.h" and "features.h"
in an include ?
Code:

#include <fenv.h>
#include <features.h>

there are a BUNCH of programs that do not yet build in gcc 4.6 or 4.7 ( or for that matter 4.5 )

the name of these
Quote:

make to compile something...
would help
if they are over a year old they might need to be updated to build in gcc4.6

Zssfssz 04-20-2012 10:03 AM

Command Used: make
Compileing: GCC 4.7.0 (Now, Same Problem Shows)
Include With: <>
I didn't change anything! I am useing the LFS book as a general guide on how to build it, but im not acctualy building a lfs system.
Binutils compiled fine. Once I found it (The Makefile for the thing that was giving me problems) I added -I/usr/include too it. It compiled fine. I still cant get glibc to compile but thats for a different reason.


All times are GMT -5. The time now is 06:19 AM.