Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error when trying to compile

Status
Not open for further replies.

Ezequiel

Programmer
Apr 4, 2001
30
CA
I've re-installed the gcc (the 2.95.3) in my RedHat7 because I heard (and noticed) that the gcc 2.98 was having some troubles.
Now, I can't compile a project... because it's not able to find the list.h, stdio.h, etc!
What can I do?
Here's a brief "log" so that you can understand better this problem.
Thanks.
Ezequiel.



--------

[root@localhost Source-2.45]# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-pld-linux/2.95.3/specs
gcc version 2.95.3 19991030 (prerelease)



[root@localhost Source-2.45]# make
g++ -c -I/usr/include -Wall -O3 neighval.cpp
In file included from tbool.h:21,
from real.h:19,
from mylist.h:12,
from neighval.h:21,
from neighval.cpp:18:
except.h:24: list.h: No such file or directory
except.h:25: iostream.h: No such file or directory
In file included from except.h:27,
from tbool.h:21,
from real.h:19,
from mylist.h:12,
from neighval.h:21,
from neighval.cpp:18:
stringp.h:16: string: No such file or directory


[root@localhost Source-2.45]# find / -name list.h
find: /proc/6/fd: Permission denied
/usr/include/linux/list.h
/usr/include/g++-3/list.h

---
Ezequiel Glinsky
eze@bumeran.com
Buenos Aires, Argentina
 
g++ -c -I/usr/include -I/usr/include/g++-3 -Wall -O3 neighval.cpp
 
just a suggestion:
try typing
g++ -c -I/usr/include/g++-3 -Wall -O3 neighval.cpp

it might help find the header files you need.

Hope it helps!!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top