Link to home
Start Free TrialLog in
Avatar of mrxz
mrxz

asked on

gcc compiler , help!!!

Hi!!!

I was wondering if someone can tell me where can I download the gcc compiler for Microsoft Windows 98 or any ansi C compiler for this system.

I ask this because  my gcc compiler for linux gives the following error and I don't know how to fix !!!

1 . <stdio.h> file not found !!!!

I mean how can I find this file or how can I install it.


I'll appreciate any help to solve these problens !!!


regards,
       mrxz
Avatar of ntdragon
ntdragon

the problem is that gcc is only the compiler you need all the include dir as well for compiling you prog
so you can copy this h file to your project and then it will work

but you need a copiler not gcc
so try to go to
www.programershevan.com
or
www.dc.ee

if you won't find there tell me i"ll find my c compiler and i"ll send it to you
man gcc  will give yiu some help.

As I remember you can specify where is
the Include Lib. with -I (?)

ntdragon:
yes, gcc is a compiler. A pretty good one too. And please, dont copy
system include files in your project dir.

yairy:
You dont specify the system include files when you compile, only the
other includes (user libs/include, other commercial libs/include, etc).

mrxz:
Did you installed gcc properly ? The system include files should have been
installed in a standard include, like /usr/include. To find it, do a
cd /; find . -name stdio.h -print;

If you cant find it, look at your current installation of gcc (README, etc. )
You can also get another copy of gcc,  go to  http://www.gnu.org/, and download gcc for your os.  You will need to install it.

If you find the stdio.h, read the installation instruction that came with the
gcc package. You should not specify the path of the system include files when you compile.  



for jpjpjp
as you know gcc is a unix/linux
compiler not windows compiler

and the gcc in unix know where do find all the includes for the program you are trying to compile but when you are trying to run gcc in windows 98 it won't able to find the h files that your program included so you have to copy the include to the same folder as the gcc and then to compile or to compile with another compiler
Avatar of mrxz

ASKER

Hi!!!
I can't find stdio.h file using find command just like jpjpjp wrote, I went to gnu site and could not download (I think that the site is a little confuse)

I have a linux CD-ROM. Can I reinstall only the gcc compiler? what is the right package I have to install?

The reason to ask for other C compiler in Win98 is to find other way to do my project.

Where can I find the gcc readme?

regards,
         mrxz
use the command man in linux shell
>>man gcc

about the stdio.h file you can even find it on the net goto www.hotbot.com
enter the ftp search i think you"ll find it there
but if you was able to compile it in linux this file must be on your comp
ntdragon:
so, since it is a unix/linux compiler, how would this compile a program
under windows ? Does that mean i can run an unix application on
windows just by copying files ?

mrxz:
U cant run the find command on linux or u dont get results from the
find command ?

To reinstall gcc, you should be able to see what package on your cd
there are, and just intall the gcc one.

Avatar of mrxz

ASKER

Hi, everyone:

When I wrote that I couldn´t find the stdio.h I mean that the find command didn´t bring any result.

I locateted the gcc package and reinstall it  and even this it didn´t work. I think that it need to install a package library. Do everyone knows where it is?
My linux is a red hat "Marumbi" ,like I sayied kernel version 2.034.

I went to all links that you provided me, in some cases I found something for windows and evaluating.

regards,
       mrxz

check for stdlib, and all those std libraries, on your cd.


mrxz,

Check for libc.so and libc.a (i donno in linux, but in unix they have the
printf and families..). Check for a package containing the standard libraries
on your cd.  
ASKER CERTIFIED SOLUTION
Avatar of the_bikeman
the_bikeman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The Mingw32 and Cygnus distributions of gcc my be more suitable for win32 applications (includes resource compiler and import utilities).

the_bikeman > I use it, and it is, frankly, awesome.
As in very good? Gcc is an excellent compiler, though a bit difficult if you're used to IDE's
stdio.h does not exist on the Linux system, try the unistd.h instead!
Avatar of mrxz

ASKER

Hi!!! everyone!!!

CrypToniC:

It´s very strange you wrote that there is no stdio.h .... it´s not an ANSI C header? Besides I compiled it in other Linux Machine and it did !

Regards
     mrxz

I am surprised as well, stdio.h has been around since K&R
Strange ... it's not on my system
but then again my system needs some
freshening up.
Sorry for the clumsy comment
But on the other hand he can't find it either, so why not use the unistd.h which should contain about the same stuff!?