public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Compilation broken?
@ 2004-12-04  5:28 Sam Lauber
  2004-12-04  6:24 ` Zack Weinberg
  2004-12-04 10:33 ` jlh
  0 siblings, 2 replies; 3+ messages in thread
From: Sam Lauber @ 2004-12-04  5:28 UTC (permalink / raw)
  To: gcc

I was copying some programming out of a programming book I have. When I compiled it with GCC 3.4.3, it said:

dcl.c:5: error: two or more data types in declaration of `tkntype'

The code at line 5 was:

int tkntype;

It was the first variable declared in the entire thing. I consider this a bug. It isn't a regression. On my 3.4.0, 3.3.3, and 1.3.6, it gave me the same error. I copyed it exactly out of my book.

Samuel Lauber
-- 
_____________________________________________________________
Web-based SMS services available at http://www.operamail.com.
From your mailbox to local or overseas cell phones.

Powered by Outblaze

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compilation broken?
  2004-12-04  5:28 Compilation broken? Sam Lauber
@ 2004-12-04  6:24 ` Zack Weinberg
  2004-12-04 10:33 ` jlh
  1 sibling, 0 replies; 3+ messages in thread
From: Zack Weinberg @ 2004-12-04  6:24 UTC (permalink / raw)
  To: Sam Lauber; +Cc: gcc, gcc-help

At Sat, 04 Dec 2004 06:28:15 +0100,
Sam Lauber wrote:
> 
> I was copying some programming out of a programming book I
> have. When I compiled it with GCC 3.4.3, it said:
> 
> dcl.c:5: error: two or more data types in declaration of `tkntype'
> 
> The code at line 5 was:
> 
> int tkntype;
> 
> It was the first variable declared in the entire thing.

Please show lines 1-4 of the program.

> I consider this a bug. It isn't a regression. On my 3.4.0, 3.3.3,
> and 1.3.6, it gave me the same error. I copyed it exactly out of my
> book.

I don't know any version of GCC numbered 1.3.6.

This question is more appropriate for gcc-help; redirected.

zw

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Compilation broken?
  2004-12-04  5:28 Compilation broken? Sam Lauber
  2004-12-04  6:24 ` Zack Weinberg
@ 2004-12-04 10:33 ` jlh
  1 sibling, 0 replies; 3+ messages in thread
From: jlh @ 2004-12-04 10:33 UTC (permalink / raw)
  To: gcc

[-- Attachment #1: Type: text/plain, Size: 219 bytes --]


> dcl.c:5: error: two or more data types in declaration of `tkntype'

In case you include one or more files in the lines 1-4, then make
sure that there's no missing semicolon at the end of the last
included file.

jlh

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-04 10:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-04  5:28 Compilation broken? Sam Lauber
2004-12-04  6:24 ` Zack Weinberg
2004-12-04 10:33 ` jlh

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).