public inbox for overseers@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: overseers@gcc.gnu.org
Subject: [onkar.mahajan@polaris.co.in] error: array type has incomplete element type ??
Date: Wed, 07 Nov 2007 05:52:00 -0000	[thread overview]
Message-ID: <m3prymsiwb.fsf@localhost.localdomain> (raw)

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

Another disclaimer snuck in.  They're getting trickier.

Ian


[-- Attachment #2: Type: message/rfc822, Size: 4353 bytes --]

From: onkar.mahajan@polaris.co.in
To: gcc-help@gcc.gnu.org
Subject: error: array type has incomplete element type ??
Date: Wed, 7 Nov 2007 08:53:13 +0530
Message-ID: <OF6530F26C.2F7E145C-ON6525738C.0011C2AF-6525738C.0011D4F0@polaris.co.in>


This is a part of the code :
--------------------------------------------------------------
extern struct dummy temp[];
error: array type has incomplete element type
--------------------------------------------------------------

 which i  compiled without any error on :

$gcc -v
Reading specs from /usr/bin/../lib/gcc-lib/powerpc-ibm-aix5.1.0.0
/2.9-aix51-020209/specs
gcc version 2.9-aix51-020209

but the same code doesnt compile on the :
$gcc -v
Using built-in specs.
Target: powerpc-ibm-aix5.3.0.0
Configured with: ../configure --with-as=/usr/bin/as --with-ld=/usr/bin/ld
--disable-nls --enable-languages=c,c++ --prefix=/opt/freeware
--enable-threads --enable-version-specific-runtime-libs
--host=powerpc-ibm-aix5.3.0.0
Thread model: aix
gcc version 4.0.0

please suggest me the arguments I must give to gcc 4.0 to get the above
code compiled.



Onkar


PS :


I have already gone through the article :
<http://www.open-std.org/jtc1/sc22/wg14/www/docs/dr_047.html>.

the code I am compiling is  large and it is difficult to change it now.
Please suggest me something that GCC 4.0 has for backward compatibility.






" Save Paper - Do you really need to print this e-mail? "

This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only.  If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in



             reply	other threads:[~2007-11-07  5:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-07  5:52 Ian Lance Taylor [this message]
2007-11-07 12:33 ` Christopher Faylor

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=m3prymsiwb.fsf@localhost.localdomain \
    --to=iant@google.com \
    --cc=overseers@gcc.gnu.org \
    /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).