Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 373
  • Last Modified:

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
0
mrxz
Asked:
mrxz
  • 4
  • 3
  • 3
  • +4
1 Solution
 
ntdragonCommented:
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
0
 
yairyCommented:
man gcc  will give yiu some help.

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

0
 
jpjpjpCommented:
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.  



0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
ntdragonCommented:
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
0
 
mrxzAuthor Commented:
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
0
 
ntdragonCommented:
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
0
 
jpjpjpCommented:
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.

0
 
mrxzAuthor Commented:
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
0
 
jpjpjpCommented:

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


0
 
jpjpjpCommented:
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.  
0
 
the_bikemanCommented:
You can find gcc for DOS and Windows at

http://www.delorie.com/djgpp/zip-picker.html

I use it, and it is, frankly, awesome.

Jthe_bikeman
0
 
KangaRooCommented:
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
0
 
CrypToniCCommented:
stdio.h does not exist on the Linux system, try the unistd.h instead!
0
 
mrxzAuthor Commented:
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

0
 
KangaRooCommented:
I am surprised as well, stdio.h has been around since K&R
0
 
CrypToniCCommented:
Strange ... it's not on my system
but then again my system needs some
freshening up.
Sorry for the clumsy comment
0
 
CrypToniCCommented:
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!?
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 4
  • 3
  • 3
  • +4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now