  | |  | problem with header file in C or C++ (joviaal fakrian) | problem with header file in C or C++ (joviaal fakrian) 2003-09-09 - By Patrick A Thompson
Back Jovi: 1) I make no claim to being any sort of C++ expert so the following may be total rubbish.
gcc3.2 is not part of the RH7.3 distro; the rpms for 3.2 have to be downloaded separately. I think I remember there were 6-8 separate rpms that had to be downloaded and installed. Is it possible that the include rpms were not installed?
In a random system, I found the following: /usr/include/g++-3/iostream iostream.h /usr/include/g++-2/iostream iostream.h
IOSTREAM.H iostream.h has been superceded by iostream (which includes iostream.h ). Is it possible that gcc3.2 won't accept the older form ?
CONIO.H I have never seen conio (and can not find it on my system).
Where is this test code coming from? If you're a newbie, might start with one of the the really simple examples in the gnu gcc documentation.
BORLAND Off hand I would think it a dangerous idea to load a non gcc3.2 header file into the include directory. The header file has to line up with the actual code (presumeably in glibc or some such place).
not your reported problem, but it may be the next thing that gets you. NAMESPACE STD I found that gcc3.2(g++) *requires* using namespace std;
HTH - Pat -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----- -- ---- ---- ---- -- > Date: Sun, 7 Sep 2003 19:26:42 -0700 (PDT) > From: joviaal fakrian <jovi_rhx@(protected)> > --- > 1. I am newbie who is trying to learn programming in C and C++. > But I have some problem about C and C++ programming what make me > confusing. > The problem was about the header file. When I was trying to compile > a source code from the book, it gave me an error message that the > compiler can't find the header file conio.h and iostream.h. I've > tried to copy the header file from Turbo C++ compiler to > /usr/include but it doesn't work. > For your information I am using Red Hat Linux 7.3, kernel 2.4.18, > gcc 3.2, libgcc 3.2, glibc 2.2.93. Could you help me to solve this > problem ? > 2. How to compile program in Pascal ? What's compiler which I must > used > Thanks for your attention. > > Regards, > Jovi
Earn $52 per hosting referral at Lunarpages.
|
|
 |