Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic Rhapsody (steve huntington)
Decrease font size
Increase font size
Topic Title: Problem using gcc version 4
Topic Summary:
Created On: 15-May-2007 06:53
Status: Read Only
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 15-May-2007 06:53
User is offline View Users Profile Print this message


Mikael Rahbek

Posts: 7
Joined: 20-May-2005

If I compile with version 4.1.2 of the gcc compiler I get the following error:
error: array type has incomplete element type
The reason for the error is caused by a forward declaration made by the code generator (Rhapsody C v. 7.0).
gcc version 3 do not give the error (or any other compiler I know) (not even PC lint).
Is there any workaround (besides using an old gcc) and/or are Rhapsody aware of the "problem".

Here is a sample code where the compile error occurs:

-----
extern struct AnalogInHw_t AnalogInHw[NO_OF_AD_CHANNELS];
-----
So if you have an array of objects the gcc error is given.

Mikael
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic Rhapsody forum.
There are currently 1 users logged in.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.