* Problem with GCC
@ 2000-01-25 9:24 Justin Thomas
2000-01-25 9:35 ` Clinton Popetz
0 siblings, 1 reply; 6+ messages in thread
From: Justin Thomas @ 2000-01-25 9:24 UTC (permalink / raw)
To: gcc
I don't know if this is a deficiency on my part, or a problem with the
software. I installed the latest GCC (2.95) with the Objective C Compiler.
Originally I had EGCS 2.71 (I believe - it's whatever came with the RedHat
6.1 release). After installing GCC, I removed the egcs rpm. Now when I
./configure something, the compiler will not recognize my system type. I
can compile fine, but I have to manually type in the system type - like
"./configure i586-linux" Am I a retard, or is it something with the
compiler?
Justin
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Problem with GCC
2000-01-25 9:24 Problem with GCC Justin Thomas
@ 2000-01-25 9:35 ` Clinton Popetz
0 siblings, 0 replies; 6+ messages in thread
From: Clinton Popetz @ 2000-01-25 9:35 UTC (permalink / raw)
To: Justin Thomas; +Cc: gcc
"Justin Thomas" <jdthomas@inn8.com> writes:
> I don't know if this is a deficiency on my part, or a problem with the
> software. I installed the latest GCC (2.95) with the Objective C Compiler.
> Originally I had EGCS 2.71 (I believe - it's whatever came with the RedHat
> 6.1 release). After installing GCC, I removed the egcs rpm. Now when I
> /configure something, the compiler will not recognize my system type. I
> can compile fine, but I have to manually type in the system type - like
> "./configure i586-linux" Am I a retard, or is it something with the
> compiler?
config-guess needs to be able to find cc. This means you either need
an environment variable CC pointing to your copy of gcc, or a symlink
in your path from cc to your copy of gcc.
The egcs rpm has a symlink, which is why things stopped working when you
removed it.
-Clint
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problem with gcc
2001-01-16 21:09 problem with gcc utih kelima
2001-01-16 21:19 ` Eric Christopher
2001-01-16 21:21 ` Alexandre Oliva
@ 2001-01-17 2:04 ` Fergus Henderson
2 siblings, 0 replies; 6+ messages in thread
From: Fergus Henderson @ 2001-01-17 2:04 UTC (permalink / raw)
To: utih kelima; +Cc: gcc
On 17-Jan-2001, utih kelima <utih75@hotmail.com> wrote:
> #include <stdio.h>;
> #include <ctype.h>;
...
> pay80.c:1: `#include' expects "FILENAME" or <FILENAME>
> pay80.c:2: `#include' expects "FILENAME" or <FILENAME>
>
> could u tell me what the problem?
There should be no semicolon (`;') after `#include <...>'.
Questions like this are probably more appropriately directed
to the newsgroup gnu.gcc.help.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
| of excellence is a lethal habit"
WWW: < http://www.cs.mu.oz.au/~fjh > | -- the last words of T. S. Garp.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problem with gcc
2001-01-16 21:09 problem with gcc utih kelima
2001-01-16 21:19 ` Eric Christopher
@ 2001-01-16 21:21 ` Alexandre Oliva
2001-01-17 2:04 ` Fergus Henderson
2 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2001-01-16 21:21 UTC (permalink / raw)
To: utih kelima; +Cc: gcc
On Jan 17, 2001, "utih kelima" <utih75@hotmail.com> wrote:
> #include <stdio.h>;
^ wrong
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: problem with gcc
2001-01-16 21:09 problem with gcc utih kelima
@ 2001-01-16 21:19 ` Eric Christopher
2001-01-16 21:21 ` Alexandre Oliva
2001-01-17 2:04 ` Fergus Henderson
2 siblings, 0 replies; 6+ messages in thread
From: Eric Christopher @ 2001-01-16 21:19 UTC (permalink / raw)
To: utih kelima; +Cc: gcc
utih kelima wrote:
>
> hi!
> I'm jamal ...
> I've problem with GNU C that I install
> I'm using Sun sparc solaris 2.6 and GNU C ver 2.8.1
>
> then I try to compile the C program named "pay80.c" as below:-
>
> #include <stdio.h>;
> #include <ctype.h>;
>
No semi-colons on the #includes :)
-eric
^ permalink raw reply [flat|nested] 6+ messages in thread
* problem with gcc
@ 2001-01-16 21:09 utih kelima
2001-01-16 21:19 ` Eric Christopher
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: utih kelima @ 2001-01-16 21:09 UTC (permalink / raw)
To: gcc
hi!
I'm jamal ...
I've problem with GNU C that I install
I'm using Sun sparc solaris 2.6 and GNU C ver 2.8.1
then I try to compile the C program named "pay80.c" as below:-
#include <stdio.h>;
#include <ctype.h>;
main()
{
FILE *InFPtr, *OutFPtr, *fptr;
char OutFile[45], tout;
int c, j, k, lt;
long int i;
long int ActualSize=0;
int NumOfFile;
InFPtr = fopen("/disc1/spenns/PROD/APP/GL/DATA/conv2.fil","r");
OutFPtr = fopen("/disc1/spenns/PROD/APP/GL/DATA/conv2.dat","w");
while ( (fgetc(InFPtr)) != EOF )
{
for(i=0; i<79; i++)
fputc(fgetc(InFPtr),OutFPtr);
fputc('\n',OutFPtr);
}
fclose(InFPtr); fclose(OutFPtr);
}
using command
$ gcc pay80.c -o pay80
it give an error like below
$ gcc pay80.c -o pay80
pay80.c:1: `#include' expects "FILENAME" or <FILENAME>
pay80.c:2: `#include' expects "FILENAME" or <FILENAME>
could u tell me what the problem?
regards,
JAMAL
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com .
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2001-01-17 2:04 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-25 9:24 Problem with GCC Justin Thomas
2000-01-25 9:35 ` Clinton Popetz
2001-01-16 21:09 problem with gcc utih kelima
2001-01-16 21:19 ` Eric Christopher
2001-01-16 21:21 ` Alexandre Oliva
2001-01-17 2:04 ` Fergus Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).