public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Alan Z. Liu" <liuzr@uiuc.edu>
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: gcc-help@gcc.gnu.org
Subject: Re: compliation error after installing gcc-2.95.2
Date: Fri, 03 Mar 2000 06:54:00 -0000	[thread overview]
Message-ID: <p04310107b4e57def9d95@[128.174.27.108]> (raw)
In-Reply-To: <m2putcbk6h.fsf@localhost.localdomain>

>On Mar  2, 2000, liuzr@uiuc.edu wrote:
>
>>                  from foo.C:13:
>
>Was the error message truncated in your message only, or does GCC
>really print just that?
>
>--
>Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaraná
>Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
>Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
>oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me

Yes, that's all the error message.  Here is again an exact copy of the error I got with a test program:


*************
337 % g++ test.C
In file included from /usr/include/sys/resource.h:21,
                 from /usr/include/sys/wait.h:83,
                 from /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/include/stdlib.h:231,
                 from test.C:2:
/usr/include/sys/time.h:337: `extern' can only be specified for objects and functions
338 %
*************

Here is the "test.C":

#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#include <math.h>
#include <string.h>

void main ()
{
}



Again, the machine is HP 9000/770, running HPUX 10.20.  I was using gcc 2.8.1 before and it worked fine with the same program.

Actually if I don't have the #include <stdlib.h>, some programs will compile fine.  Then some programs that use function "atof" will complain.

Looks like some incompatibility between g++'s stdlib.h and the system's 'time.h'?  Or I did something wrong?





--

-Alan

WARNING: multiple messages have this Message-ID
From: "Alan Z. Liu" <liuzr@uiuc.edu>
To: Alexandre Oliva <oliva@lsd.ic.unicamp.br>
Cc: gcc-help@gcc.gnu.org
Subject: Re: compliation error after installing gcc-2.95.2
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <p04310107b4e57def9d95@[128.174.27.108]> (raw)
Message-ID: <20000401000000.dGhZWhgMqfSx44LrhGimdIlBR0wab-pLGuHdNLZep_0@z> (raw)
In-Reply-To: <m2putcbk6h.fsf@localhost.localdomain>

>On Mar  2, 2000, liuzr@uiuc.edu wrote:
>
>>                  from foo.C:13:
>
>Was the error message truncated in your message only, or does GCC
>really print just that?
>
>--
>Alexandre Oliva     http://www.ic.unicamp.br/~oliva/     Enjoy Guaraná
>Cygnus Solutions, a Red Hat company        aoliva@{redhat, cygnus}.com
>Free Software Developer and Evangelist    CS PhD student at IC-Unicamp
>oliva@{lsd.ic.unicamp.br, gnu.org}   Write to mailing lists, not to me

Yes, that's all the error message.  Here is again an exact copy of the error I got with a test program:


*************
337 % g++ test.C
In file included from /usr/include/sys/resource.h:21,
                 from /usr/include/sys/wait.h:83,
                 from /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/2.95.2/include/stdlib.h:231,
                 from test.C:2:
/usr/include/sys/time.h:337: `extern' can only be specified for objects and functions
338 %
*************

Here is the "test.C":

#include <stdio.h>
#include <stdlib.h>
#include <iostream.h>
#include <math.h>
#include <string.h>

void main ()
{
}



Again, the machine is HP 9000/770, running HPUX 10.20.  I was using gcc 2.8.1 before and it worked fine with the same program.

Actually if I don't have the #include <stdlib.h>, some programs will compile fine.  Then some programs that use function "atof" will complain.

Looks like some incompatibility between g++'s stdlib.h and the system's 'time.h'?  Or I did something wrong?





--

-Alan

  reply	other threads:[~2000-03-03  6:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-03-02 15:21 liuzr
2000-03-02 23:12 ` Alexandre Oliva
2000-03-03  6:54   ` Alan Z. Liu [this message]
2000-03-03 12:19     ` Alexandre Oliva
2000-03-03 12:39       ` Alan Z. Liu
2000-03-03 16:37         ` Alexandre Oliva
2000-04-01  0:00           ` Alexandre Oliva
2000-04-01  0:00         ` Alan Z. Liu
2000-04-01  0:00       ` Alexandre Oliva
2000-04-01  0:00     ` Alan Z. Liu
2000-04-01  0:00   ` Alexandre Oliva
2000-04-01  0:00 ` liuzr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='p04310107b4e57def9d95@[128.174.27.108]' \
    --to=liuzr@uiuc.edu \
    --cc=gcc-help@gcc.gnu.org \
    --cc=oliva@lsd.ic.unicamp.br \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).